chore: Move to different iconsax library (#301)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-04-05 23:36:48 +02:00 committed by GitHub
parent 5b3d5b8900
commit 5578076fdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
71 changed files with 349 additions and 346 deletions

View file

@ -1,7 +1,7 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:ficonsax/ficonsax.dart';
import 'package:iconsax_plus/iconsax_plus.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:window_manager/window_manager.dart';
@ -173,8 +173,8 @@ class _CurrentlyPlayingBarState extends ConsumerState<FloatingPlayerBar> {
},
icon: Icon(
ref.watch(videoPlayerSettingsProvider.select((value) => value.volume)) <= 0
? IconsaxBold.volume_cross
: IconsaxBold.volume_high,
? IconsaxPlusBold.volume_cross
: IconsaxPlusBold.volume_high,
),
),
},
@ -183,7 +183,7 @@ class _CurrentlyPlayingBarState extends ConsumerState<FloatingPlayerBar> {
waitDuration: const Duration(milliseconds: 500),
child: IconButton(
onPressed: () async => stopPlayer(),
icon: const Icon(IconsaxBold.stop),
icon: const Icon(IconsaxPlusBold.stop),
),
),
].addInBetween(const SizedBox(width: 6)),

View file

@ -3,7 +3,7 @@ import 'package:flutter/services.dart';
import 'package:auto_route/auto_route.dart';
import 'package:collection/collection.dart';
import 'package:ficonsax/ficonsax.dart';
import 'package:iconsax_plus/iconsax_plus.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:fladder/models/settings/home_settings_model.dart';
@ -162,7 +162,7 @@ class _NavigationBodyState extends ConsumerState<NavigationBody> {
});
}
},
icon: const Icon(IconsaxBold.menu),
icon: const Icon(IconsaxPlusBold.menu),
),
if (AdaptiveLayout.layoutModeOf(context) == LayoutMode.dual) ...[
const SizedBox(height: 8),
@ -198,7 +198,7 @@ class _NavigationBodyState extends ConsumerState<NavigationBody> {
color: Theme.of(context).colorScheme.primaryContainer,
child: const Padding(
padding: EdgeInsets.all(10),
child: Icon(IconsaxBold.setting_3),
child: Icon(IconsaxPlusBold.setting_3),
),
)
: const SettingsUserIcon()),

View file

@ -2,7 +2,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:auto_route/auto_route.dart';
import 'package:ficonsax/ficonsax.dart';
import 'package:iconsax_plus/iconsax_plus.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:fladder/models/collection_types.dart';
@ -54,7 +54,7 @@ class NestedNavigationDrawer extends ConsumerWidget {
),
IconButton(
onPressed: () => toggleExpanded(false),
icon: const Icon(IconsaxOutline.menu),
icon: const Icon(IconsaxPlusLinear.menu),
),
],
),
@ -96,7 +96,7 @@ class NestedNavigationDrawer extends ConsumerWidget {
actions: [
ItemActionButton(
label: Text(context.localized.scanLibrary),
icon: const Icon(IconsaxOutline.refresh),
icon: const Icon(IconsaxPlusLinear.refresh),
action: () => showRefreshPopup(context, library.id, library.name),
),
],
@ -113,7 +113,7 @@ class NestedNavigationDrawer extends ConsumerWidget {
offset: const Offset(-8, 0),
child: DrawerListButton(
label: context.localized.settings,
selectedIcon: const Icon(IconsaxBold.setting_3),
selectedIcon: const Icon(IconsaxPlusBold.setting_3),
selected: currentLocation.contains(const SettingsRoute().routeName),
icon: const SizedBox(width: 35, height: 35, child: SettingsUserIcon()),
onPressed: () {
@ -132,8 +132,8 @@ class NestedNavigationDrawer extends ConsumerWidget {
else
DrawerListButton(
label: context.localized.settings,
selectedIcon: const Icon(IconsaxBold.setting_2),
icon: const Icon(IconsaxOutline.setting_2),
selectedIcon: const Icon(IconsaxPlusBold.setting_2),
icon: const Icon(IconsaxPlusLinear.setting_2),
selected: currentLocation.contains(const SettingsRoute().routeName),
onPressed: () {
switch (AdaptiveLayout.layoutModeOf(context)) {