mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-08 00:17:29 +00:00
Compare commits
1 Commits
10d6714383
...
1705028915
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1705028915 |
@ -90,25 +90,11 @@ class TrackOptions extends HookConsumerWidget {
|
|||||||
BuildContext context,
|
BuildContext context,
|
||||||
Track track,
|
Track track,
|
||||||
) {
|
) {
|
||||||
/// showDialog doesn't work for some reason. So we have to
|
showDialog(
|
||||||
/// manually push a Dialog Route in the Navigator to get it working
|
context: context,
|
||||||
Navigator.push(
|
builder: (context) => PlaylistAddTrackDialog(
|
||||||
context,
|
tracks: [track],
|
||||||
DialogRoute(
|
openFromPlaylist: playlistId,
|
||||||
alignment: Alignment.bottomCenter,
|
|
||||||
transitionBuilder: (context, animation, secondaryAnimation, child) {
|
|
||||||
return FadeTransition(opacity: animation, child: child);
|
|
||||||
},
|
|
||||||
context: context,
|
|
||||||
barrierColor: Colors.black.withValues(alpha: 0.5),
|
|
||||||
builder: (context) {
|
|
||||||
return Center(
|
|
||||||
child: PlaylistAddTrackDialog(
|
|
||||||
tracks: [track],
|
|
||||||
openFromPlaylist: playlistId,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
40
pubspec.yaml
40
pubspec.yaml
@ -193,6 +193,46 @@ flutter:
|
|||||||
- packages/flutter_undraw/assets/undraw/empty.svg
|
- packages/flutter_undraw/assets/undraw/empty.svg
|
||||||
- packages/flutter_undraw/assets/undraw/no_data.svg
|
- packages/flutter_undraw/assets/undraw/no_data.svg
|
||||||
fonts:
|
fonts:
|
||||||
|
- family: GeistSans
|
||||||
|
fonts:
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-Black.otf
|
||||||
|
weight: 800
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-Bold.otf
|
||||||
|
weight: 700
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-Light.otf
|
||||||
|
weight: 300
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-Medium.otf
|
||||||
|
weight: 500
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-SemiBold.otf
|
||||||
|
weight: 600
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-Thin.otf
|
||||||
|
weight: 100
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-UltraBlack.otf
|
||||||
|
weight: 900
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-UltraLight.otf
|
||||||
|
weight: 200
|
||||||
|
- asset: packages/shadcn_flutter/fonts/Geist-Regular.otf
|
||||||
|
weight: 400
|
||||||
|
- family: GeistMono
|
||||||
|
fonts:
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-Black.otf
|
||||||
|
weight: 800
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-Bold.otf
|
||||||
|
weight: 700
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-Light.otf
|
||||||
|
weight: 300
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-Medium.otf
|
||||||
|
weight: 500
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-Regular.otf
|
||||||
|
weight: 400
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-SemiBold.otf
|
||||||
|
weight: 600
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-Thin.otf
|
||||||
|
weight: 100
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-UltraBlack.otf
|
||||||
|
weight: 900
|
||||||
|
- asset: packages/shadcn_flutter/fonts/GeistMono-UltraLight.otf
|
||||||
|
weight: 200
|
||||||
- family: RadixIcons
|
- family: RadixIcons
|
||||||
fonts:
|
fonts:
|
||||||
- asset: packages/shadcn_flutter/icons/RadixIcons.otf
|
- asset: packages/shadcn_flutter/icons/RadixIcons.otf
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user