mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 01:37:07 -07:00
chore: Move to different iconsax library (#301)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
5b3d5b8900
commit
5578076fdb
71 changed files with 349 additions and 346 deletions
|
|
@ -2,7 +2,7 @@ import 'dart:ui';
|
|||
|
||||
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:fladder/models/playback/playback_model.dart';
|
||||
|
|
@ -70,7 +70,7 @@ class _VideoPlaybackInformation extends ConsumerWidget {
|
|||
),
|
||||
IconButton.filled(
|
||||
onPressed: () => context.copyToClipboard(playbackModel?.media?.url ?? "No url"),
|
||||
icon: const Icon(IconsaxOutline.copy),
|
||||
icon: const Icon(IconsaxPlusLinear.copy),
|
||||
)
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:ficonsax/ficonsax.dart';
|
||||
import 'package:iconsax_plus/iconsax_plus.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:screen_brightness/screen_brightness.dart';
|
||||
|
||||
|
|
@ -276,13 +276,13 @@ class _VideoPlayerNextWrapperState extends ConsumerState<VideoPlayerNextWrapper>
|
|||
IconButton.filledTonal(
|
||||
onPressed: () => hideNextUp(),
|
||||
tooltip: context.localized.resumeVideo,
|
||||
icon: const Icon(IconsaxBold.maximize_4),
|
||||
icon: const Icon(IconsaxPlusBold.maximize_4),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
IconButton.filledTonal(
|
||||
onPressed: () => closePlayer(),
|
||||
tooltip: context.localized.closeVideo,
|
||||
icon: const Icon(IconsaxBold.close_square),
|
||||
icon: const Icon(IconsaxPlusBold.close_square),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
@ -454,13 +454,13 @@ class _SimpleControls extends ConsumerWidget {
|
|||
children: [
|
||||
IconButton.filledTonal(
|
||||
onPressed: () => player.playOrPause(),
|
||||
icon: Icon(isPlaying ? IconsaxBold.pause : IconsaxBold.play),
|
||||
icon: Icon(isPlaying ? IconsaxPlusBold.pause : IconsaxPlusBold.play),
|
||||
),
|
||||
if (skip != null)
|
||||
IconButton.filledTonal(
|
||||
onPressed: skip,
|
||||
tooltip: context.localized.playNextVideo,
|
||||
icon: const Icon(IconsaxBold.next),
|
||||
icon: const Icon(IconsaxPlusBold.next),
|
||||
)
|
||||
].addInBetween(const SizedBox(width: 4)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter/services.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/item_base_model.dart';
|
||||
|
|
@ -124,7 +124,7 @@ class _VideoOptionsMobileState extends ConsumerState<VideoOptions> {
|
|||
icon: Opacity(
|
||||
opacity: videoSettings.screenBrightness != null ? 0.5 : 1,
|
||||
child: Icon(
|
||||
IconsaxBold.autobrightness,
|
||||
IconsaxPlusBold.autobrightness,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
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:fladder/providers/settings/video_player_settings_provider.dart';
|
||||
|
|
@ -70,10 +70,10 @@ class _VideoVolumeSliderState extends ConsumerState<VideoVolumeSlider> {
|
|||
|
||||
IconData volumeIcon(double value) {
|
||||
if (value <= 0) {
|
||||
return IconsaxOutline.volume_mute;
|
||||
return IconsaxPlusLinear.volume_mute;
|
||||
}
|
||||
if (value < 50) {
|
||||
return IconsaxOutline.volume_low;
|
||||
return IconsaxPlusLinear.volume_low;
|
||||
}
|
||||
return IconsaxOutline.volume_high;
|
||||
return IconsaxPlusLinear.volume_high;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue