mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-06 16:14:15 +00:00
refactor: Remove unused icons
This commit is contained in:
parent
cd52527b59
commit
bbbe37d16a
|
@ -18,10 +18,7 @@ class BrandHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||
@override
|
||||
Widget build(final BuildContext context) => AppBar(
|
||||
centerTitle: true,
|
||||
title: Padding(
|
||||
padding: const EdgeInsets.only(top: 4.0),
|
||||
child: Text(title),
|
||||
),
|
||||
title: Text(title),
|
||||
leading: hasBackButton
|
||||
? IconButton(
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
|
|
|
@ -23,62 +23,16 @@ class BrandIcons {
|
|||
static const String _kFontFam = 'BrandIcons';
|
||||
static const String? _kFontPkg = null;
|
||||
|
||||
static const IconData connection =
|
||||
IconData(0xe800, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData envelope =
|
||||
IconData(0xe801, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData document =
|
||||
IconData(0xe802, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData key =
|
||||
IconData(0xe803, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData save =
|
||||
IconData(0xe804, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData globe =
|
||||
IconData(0xe805, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData help =
|
||||
IconData(0xe806, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData refresh_1 =
|
||||
IconData(0xe807, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData check =
|
||||
IconData(0xe808, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData webcam =
|
||||
IconData(0xe809, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData refresh =
|
||||
IconData(0xe80a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData git =
|
||||
IconData(0xe80b, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData social =
|
||||
IconData(0xe80c, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData settings =
|
||||
IconData(0xe80d, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData share =
|
||||
IconData(0xe80e, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData triangle =
|
||||
IconData(0xe80f, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData engineer =
|
||||
IconData(0xe810, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData server =
|
||||
IconData(0xe811, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData box =
|
||||
IconData(0xe812, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData menu =
|
||||
IconData(0xe813, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData users =
|
||||
IconData(0xe814, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData messanger =
|
||||
IconData(0xe815, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData upload =
|
||||
IconData(0xe816, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData arrowLeft =
|
||||
IconData(0xe818, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData shape =
|
||||
IconData(0xe819, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData keyhole =
|
||||
IconData(0xe81a, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData terminal =
|
||||
IconData(0xe81b, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData fire =
|
||||
IconData(0xe81c, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
static const IconData start =
|
||||
IconData(0xe81d, fontFamily: _kFontFam, fontPackage: _kFontPkg);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@Deprecated('Use skeletons instead')
|
||||
class BrandLoader {
|
||||
static HorizontalLoader horizontal() => const HorizontalLoader();
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ class ServerJobCard extends StatelessWidget {
|
|||
color: color,
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
height: 7.0,
|
||||
height: 8.0,
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
if (statusString != null)
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:selfprivacy/ui/components/brand_linear_indicator/brand_linear_indicator.dart';
|
||||
|
||||
class ServiceStorageConsumptionListItem extends StatelessWidget {
|
||||
const ServiceStorageConsumptionListItem({
|
||||
required this.title,
|
||||
required this.percentage,
|
||||
required this.storageConsumptionText,
|
||||
required this.color,
|
||||
required this.icon,
|
||||
super.key,
|
||||
});
|
||||
|
||||
final String title;
|
||||
final double percentage;
|
||||
final String storageConsumptionText;
|
||||
final Color color;
|
||||
final IconData icon;
|
||||
@override
|
||||
Widget build(final BuildContext context) => Row(
|
||||
children: [
|
||||
Icon(
|
||||
icon,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
),
|
||||
Text(
|
||||
storageConsumptionText,
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
BrandLinearIndicator(
|
||||
value: percentage,
|
||||
color: color,
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
height: 7.0,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
|
@ -71,14 +71,14 @@ class MorePage extends StatelessWidget {
|
|||
),
|
||||
_MoreMenuItem(
|
||||
title: 'about_application_page.title'.tr(),
|
||||
iconData: BrandIcons.fire,
|
||||
iconData: Icons.info_outline,
|
||||
goTo: () => const AboutApplicationRoute(),
|
||||
longGoTo: const DeveloperSettingsRoute(),
|
||||
),
|
||||
if (!isReady)
|
||||
_MoreMenuItem(
|
||||
title: 'more_page.onboarding'.tr(),
|
||||
iconData: BrandIcons.start,
|
||||
iconData: Icons.play_circle_outlined,
|
||||
goTo: () => const OnboardingRoute(),
|
||||
),
|
||||
_MoreMenuItem(
|
||||
|
|
|
@ -80,7 +80,7 @@ class _ServerDetailsScreenState extends State<ServerDetailsScreen>
|
|||
const SizedBox(height: 16),
|
||||
ListTile(
|
||||
title: Text('server.settings'.tr()),
|
||||
leading: const Icon(BrandIcons.settings),
|
||||
leading: const Icon(Icons.settings_outlined),
|
||||
onTap: () => context.pushRoute(const ServerSettingsRoute()),
|
||||
),
|
||||
ListTile(
|
||||
|
|
|
@ -51,7 +51,7 @@ class ResetPassword extends StatelessWidget {
|
|||
padding: const EdgeInsets.only(right: 8),
|
||||
child: IconButton(
|
||||
icon: Icon(
|
||||
BrandIcons.refresh,
|
||||
Icons.refresh,
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue