mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 09:46:01 -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:async/async.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';
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
isSelected: true,
|
||||
iconSize: 65,
|
||||
tooltip: "Resume video",
|
||||
icon: const Icon(IconsaxBold.play),
|
||||
icon: const Icon(IconsaxPlusBold.play),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
@ -253,7 +253,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
IconButton(
|
||||
onPressed: () => minimizePlayer(context),
|
||||
icon: const Icon(
|
||||
IconsaxOutline.arrow_down_1,
|
||||
IconsaxPlusLinear.arrow_down_1,
|
||||
size: 24,
|
||||
),
|
||||
),
|
||||
|
|
@ -276,7 +276,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
Tooltip(
|
||||
message: context.localized.stop,
|
||||
child: IconButton(
|
||||
onPressed: () => closePlayer(), icon: const Icon(IconsaxOutline.close_square))),
|
||||
onPressed: () => closePlayer(), icon: const Icon(IconsaxPlusLinear.close_square))),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
@ -321,22 +321,22 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
children: <Widget>[
|
||||
IconButton(
|
||||
onPressed: () => showVideoPlayerOptions(context, () => minimizePlayer(context)),
|
||||
icon: const Icon(IconsaxOutline.more)),
|
||||
icon: const Icon(IconsaxPlusLinear.more)),
|
||||
if (AdaptiveLayout.layoutOf(context) == ViewSize.tablet) ...[
|
||||
IconButton(
|
||||
onPressed: () => showSubSelection(context),
|
||||
icon: const Icon(IconsaxOutline.subtitle),
|
||||
icon: const Icon(IconsaxPlusLinear.subtitle),
|
||||
),
|
||||
IconButton(
|
||||
onPressed: () => showAudioSelection(context),
|
||||
icon: const Icon(IconsaxOutline.audio_square),
|
||||
icon: const Icon(IconsaxPlusLinear.audio_square),
|
||||
),
|
||||
],
|
||||
if (AdaptiveLayout.layoutOf(context) == ViewSize.desktop) ...[
|
||||
Flexible(
|
||||
child: ElevatedButton.icon(
|
||||
onPressed: () => showSubSelection(context),
|
||||
icon: const Icon(IconsaxOutline.subtitle),
|
||||
icon: const Icon(IconsaxPlusLinear.subtitle),
|
||||
label: Text(
|
||||
ref.watch(playBackModel.select((value) {
|
||||
final language = value?.mediaStreams?.currentSubStream?.language;
|
||||
|
|
@ -350,7 +350,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
Flexible(
|
||||
child: ElevatedButton.icon(
|
||||
onPressed: () => showAudioSelection(context),
|
||||
icon: const Icon(IconsaxOutline.audio_square),
|
||||
icon: const Icon(IconsaxPlusLinear.audio_square),
|
||||
label: Text(
|
||||
ref.watch(playBackModel.select((value) {
|
||||
final language = value?.mediaStreams?.currentAudioStream?.language;
|
||||
|
|
@ -375,7 +375,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
ref.read(videoPlayerProvider).playOrPause();
|
||||
},
|
||||
icon: Icon(
|
||||
mediaPlayback.playing ? IconsaxBold.pause : IconsaxBold.play,
|
||||
mediaPlayback.playing ? IconsaxPlusBold.pause : IconsaxPlusBold.play,
|
||||
),
|
||||
),
|
||||
seekForwardButton(ref),
|
||||
|
|
@ -389,7 +389,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
Tooltip(
|
||||
message: context.localized.stop,
|
||||
child: IconButton(
|
||||
onPressed: () => closePlayer(), icon: const Icon(IconsaxOutline.close_square))),
|
||||
onPressed: () => closePlayer(), icon: const Icon(IconsaxPlusLinear.close_square))),
|
||||
const Spacer(),
|
||||
if (AdaptiveLayout.viewSizeOf(context) >= ViewSize.tablet &&
|
||||
ref.read(videoPlayerProvider).hasPlayer) ...{
|
||||
|
|
@ -398,7 +398,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
message: context.localized.qualityOptionsTitle,
|
||||
child: IconButton(
|
||||
onPressed: () => openQualityOptions(context),
|
||||
icon: const Icon(IconsaxOutline.speedometer),
|
||||
icon: const Icon(IconsaxPlusLinear.speedometer),
|
||||
),
|
||||
),
|
||||
},
|
||||
|
|
@ -537,7 +537,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
: null,
|
||||
iconSize: 30,
|
||||
icon: const Icon(
|
||||
IconsaxOutline.backward,
|
||||
IconsaxPlusLinear.backward,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
@ -563,7 +563,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
nextVideo != null && !buffering ? () => ref.read(playbackModelHelper).loadNewVideo(nextVideo) : null,
|
||||
iconSize: 30,
|
||||
icon: const Icon(
|
||||
IconsaxOutline.forward,
|
||||
IconsaxPlusLinear.forward,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
@ -577,7 +577,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
tooltip: "-10",
|
||||
iconSize: 40,
|
||||
icon: const Icon(
|
||||
IconsaxOutline.backward_10_seconds,
|
||||
IconsaxPlusLinear.backward_10_seconds,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
@ -589,7 +589,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
iconSize: 40,
|
||||
icon: const Stack(
|
||||
children: [
|
||||
Icon(IconsaxOutline.forward_15_seconds),
|
||||
Icon(IconsaxPlusLinear.forward_15_seconds),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue