Skip to content

Commit

Permalink
fix: add to playlist in playing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yesterday17 committed Sep 21, 2024
1 parent 753b637 commit 2acd76c
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion lib/ui/dialogs/enum_select.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Future<T> showEnumSelectDialog<T extends Enum>(final BuildContext context,

await showDialog(
context: context,
useRootNavigator: true,
builder: (final context) {
return Center(
child: Card(child: child),
Expand Down
1 change: 0 additions & 1 deletion lib/ui/dialogs/loading.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
void showLoadingDialog(final BuildContext context) {
showDialog(
context: context,
useRootNavigator: true,
barrierDismissible: false,
builder: (final context) {
return const Center(
Expand Down
3 changes: 0 additions & 3 deletions lib/ui/dialogs/playlist_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ Future<void> showPlaylistDialog(

final anniv = ref.read(annivProvider);

// hide the previous dialog
Navigator.of(context, rootNavigator: true).pop();

return showModalBottomSheet(
useRootNavigator: true,
context: context,
Expand Down
1 change: 0 additions & 1 deletion lib/ui/dialogs/prefer_quality.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Future<PreferQuality> showPreferQualityDialog(

await showDialog(
context: context,
useRootNavigator: true,
builder: (final context) {
return Center(
child: Card(
Expand Down
3 changes: 0 additions & 3 deletions lib/ui/dialogs/tag.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import 'dart:async';

import 'package:annix/services/metadata/metadata_model.dart';
import 'package:annix/ui/page/tag/tag_list.dart';
import 'package:annix/utils/context_extension.dart';
import 'package:flutter/material.dart';

Future<TagEntry?> showTagListDialog(final BuildContext context) async {
TagEntry? result;

await showDialog(
context: context,
// if it's mobile, we expect to show the dialog with the actual full screen
useRootNavigator: context.isMobileOrPortrait,
builder: (final context) {
return Dialog.fullscreen(
child: Scaffold(
Expand Down
1 change: 0 additions & 1 deletion lib/ui/page/playing/playing_desktop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ class _PlayingDesktopScreenState extends State<PlayingDesktopScreen> {
if (playing != null) {
showDialog(
context: context,
useRootNavigator: true,
builder: (final context) {
return SearchLyricsDialog(track: playing);
},
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/page/playing/playing_mobile_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class PlayingScreenMobileBottomBar extends ConsumerWidget {
if (playing != null) {
showDialog(
context: context,
useRootNavigator: true,
builder: (final context) {
return SearchLyricsDialog(track: playing);
},
Expand All @@ -60,7 +59,6 @@ class PlayingScreenMobileBottomBar extends ConsumerWidget {
icon: const Icon(Icons.queue_music_rounded),
onPressed: () {
showModalBottomSheet(
useRootNavigator: true,
context: context,
isScrollControlled: true,
showDragHandle: true,
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/page/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ class SettingsScreen extends ConsumerWidget {
final navigator = Navigator.of(context, rootNavigator: true);
showDialog(
context: context,
useRootNavigator: true,
builder: (final context) => SimpleDialog(
title: Text(t.progress),
children: const [
Expand Down Expand Up @@ -242,7 +241,6 @@ class SettingsScreen extends ConsumerWidget {
final navigator = Navigator.of(context, rootNavigator: true);
showDialog(
context: context,
useRootNavigator: true,
builder: (final context) => SimpleDialog(
title: Text(t.progress),
children: const [
Expand Down
1 change: 0 additions & 1 deletion lib/ui/page/settings/settings_log.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class SettingsLogView extends StatelessWidget {
void showDetailDialog(final BuildContext context, LogEntry log) {
showDialog(
context: context,
useRootNavigator: true,
builder: (final context) {
return AlertDialog(
title: const Text('Detail'),
Expand Down

0 comments on commit 2acd76c

Please sign in to comment.