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(
index,
(context, animation) => Center(),
duration: Duration(milliseconds: 50),
duration: Duration(milliseconds: 200),
);
miniPlaylistKey.currentState.insertItem(0,
duration: Duration(milliseconds: 100));
await Future.delayed(
Duration(milliseconds: 150));
Duration(milliseconds: 300));
await audio
.moveToTop(data.item1[index + 1]);
},

View File

@ -280,7 +280,6 @@ class _PlaylistPageState extends State<PlaylistPage> {
}
audio.reorderPlaylist(oldIndex, newIndex);
// final episodeRemove = episodes.removeAt(oldIndex);
// print(episodeRemove.title);
setState(() {
// episodes.insert(newIndex, episodeRemove);
});

View File

@ -60,7 +60,6 @@ void callbackDispatcher() {
ThemeData lightTheme = ThemeData(
accentColorBrightness: Brightness.dark,
primaryColor: Colors.grey[100],
// accentColor: _accentSetColor,
primaryColorLight: Colors.white,
primaryColorDark: Colors.grey[300],
dialogBackgroundColor: Colors.white,

View File

@ -21,14 +21,14 @@ generalDialog(BuildContext context,
: Color.fromRGBO(15, 15, 15, 1),
),
child: AlertDialog(
elevation: 1,
elevation: 2,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10.0))),
titlePadding: EdgeInsets.all(20),
title: SizedBox(width: context.width - 160, child: title),
content: content,
contentPadding: EdgeInsets.fromLTRB(20, 0, 20, 0),
actionsPadding: EdgeInsets.all(10),
actionsPadding: EdgeInsets.fromLTRB(10, 0, 10, 0),
actions: actions),
),
);