mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
fix(ui): scaffold exception in fluent_ui
This commit is contained in:
parent
9b6ccd8488
commit
8ce2192e5c
@ -56,8 +56,10 @@ class ZoomControls extends HookWidget {
|
||||
?.withOpacity(0.7),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
constraints:
|
||||
BoxConstraints(maxHeight: direction == Axis.horizontal ? 50 : 200),
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: direction == Axis.horizontal ? 50 : 200,
|
||||
maxWidth: direction == Axis.vertical ? 50 : double.infinity,
|
||||
),
|
||||
margin: const EdgeInsets.all(8),
|
||||
child: direction == Axis.horizontal
|
||||
? Row(
|
||||
|
@ -37,7 +37,6 @@ class PlaylistCard extends HookConsumerWidget {
|
||||
|
||||
final updating = useState(false);
|
||||
final spotify = ref.watch(spotifyProvider);
|
||||
final scaffold = ScaffoldMessenger.of(context);
|
||||
|
||||
return PlaybuttonCard(
|
||||
viewType: viewType,
|
||||
@ -94,11 +93,6 @@ class PlaylistCard extends HookConsumerWidget {
|
||||
|
||||
playlistNotifier.add(fetchedTracks);
|
||||
tracks.value = fetchedTracks;
|
||||
scaffold.showSnackBar(
|
||||
SnackBar(
|
||||
content: Text("Added ${fetchedTracks.length} tracks to queue"),
|
||||
),
|
||||
);
|
||||
} finally {
|
||||
updating.value = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user