Minor change.
This commit is contained in:
parent
99cf220adc
commit
c8c16a09f8
|
@ -559,12 +559,12 @@ class _PlaylistWidgetState extends State<PlaylistWidget> {
|
||||||
miniPlaylistKey.currentState.removeItem(
|
miniPlaylistKey.currentState.removeItem(
|
||||||
index,
|
index,
|
||||||
(context, animation) => Center(),
|
(context, animation) => Center(),
|
||||||
duration: Duration(milliseconds: 50),
|
duration: Duration(milliseconds: 200),
|
||||||
);
|
);
|
||||||
miniPlaylistKey.currentState.insertItem(0,
|
miniPlaylistKey.currentState.insertItem(0,
|
||||||
duration: Duration(milliseconds: 100));
|
duration: Duration(milliseconds: 100));
|
||||||
await Future.delayed(
|
await Future.delayed(
|
||||||
Duration(milliseconds: 150));
|
Duration(milliseconds: 300));
|
||||||
await audio
|
await audio
|
||||||
.moveToTop(data.item1[index + 1]);
|
.moveToTop(data.item1[index + 1]);
|
||||||
},
|
},
|
||||||
|
|
|
@ -280,7 +280,6 @@ class _PlaylistPageState extends State<PlaylistPage> {
|
||||||
}
|
}
|
||||||
audio.reorderPlaylist(oldIndex, newIndex);
|
audio.reorderPlaylist(oldIndex, newIndex);
|
||||||
// final episodeRemove = episodes.removeAt(oldIndex);
|
// final episodeRemove = episodes.removeAt(oldIndex);
|
||||||
// print(episodeRemove.title);
|
|
||||||
setState(() {
|
setState(() {
|
||||||
// episodes.insert(newIndex, episodeRemove);
|
// episodes.insert(newIndex, episodeRemove);
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,7 +60,6 @@ void callbackDispatcher() {
|
||||||
ThemeData lightTheme = ThemeData(
|
ThemeData lightTheme = ThemeData(
|
||||||
accentColorBrightness: Brightness.dark,
|
accentColorBrightness: Brightness.dark,
|
||||||
primaryColor: Colors.grey[100],
|
primaryColor: Colors.grey[100],
|
||||||
// accentColor: _accentSetColor,
|
|
||||||
primaryColorLight: Colors.white,
|
primaryColorLight: Colors.white,
|
||||||
primaryColorDark: Colors.grey[300],
|
primaryColorDark: Colors.grey[300],
|
||||||
dialogBackgroundColor: Colors.white,
|
dialogBackgroundColor: Colors.white,
|
||||||
|
|
|
@ -21,14 +21,14 @@ generalDialog(BuildContext context,
|
||||||
: Color.fromRGBO(15, 15, 15, 1),
|
: Color.fromRGBO(15, 15, 15, 1),
|
||||||
),
|
),
|
||||||
child: AlertDialog(
|
child: AlertDialog(
|
||||||
elevation: 1,
|
elevation: 2,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.all(Radius.circular(10.0))),
|
borderRadius: BorderRadius.all(Radius.circular(10.0))),
|
||||||
titlePadding: EdgeInsets.all(20),
|
titlePadding: EdgeInsets.all(20),
|
||||||
title: SizedBox(width: context.width - 160, child: title),
|
title: SizedBox(width: context.width - 160, child: title),
|
||||||
content: content,
|
content: content,
|
||||||
contentPadding: EdgeInsets.fromLTRB(20, 0, 20, 0),
|
contentPadding: EdgeInsets.fromLTRB(20, 0, 20, 0),
|
||||||
actionsPadding: EdgeInsets.all(10),
|
actionsPadding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
||||||
actions: actions),
|
actions: actions),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue