Minor change.

This commit is contained in:
stonegate 2020-08-11 16:36:27 +08:00
parent 99cf220adc
commit c8c16a09f8
4 changed files with 4 additions and 6 deletions

View File

@ -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]);
}, },

View File

@ -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);
}); });

View File

@ -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,

View File

@ -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),
), ),
); );