diff --git a/lib/design/widgets/entry_card.dart b/lib/design/widgets/entry_card.dart index 9c1075fbd..8ae42940e 100644 --- a/lib/design/widgets/entry_card.dart +++ b/lib/design/widgets/entry_card.dart @@ -168,6 +168,7 @@ class EntryCard extends StatelessWidget { ? null : () async { Navigator.of(context, rootNavigator: true).pop(); + await Future.delayed(const Duration(milliseconds: 336)); await callback(); }, child: action.label.text(), @@ -178,6 +179,7 @@ class EntryCard extends StatelessWidget { trailingIcon: CupertinoIcons.delete, onPressed: () async { Navigator.of(context, rootNavigator: true).pop(); + await Future.delayed(const Duration(milliseconds: 336)); await deleteAction.action?.call(); }, isDestructiveAction: true, diff --git a/lib/timetable/page/p13n.dart b/lib/timetable/page/p13n.dart index 836db237d..52dc62a4e 100644 --- a/lib/timetable/page/p13n.dart +++ b/lib/timetable/page/p13n.dart @@ -113,18 +113,22 @@ class _TimetableP13nPageState extends State with SingleTicker Widget buildPaletteList(List idList) { final selectedId = TimetableInit.storage.palette.selectedId ?? BuiltinTimetablePalettes.classic.id; - return ListView.builder( - itemCount: idList.length, - itemBuilder: (ctx, i) { - final id = idList[i]; - final palette = TimetableInit.storage.palette[id]; - if (palette == null) return const SizedBox(); - return buildPaletteCard( - id, - palette, - selected: selectedId == id, - ).padH(6); - }, + return CustomScrollView( + slivers: [ + SliverList.builder( + itemCount: idList.length, + itemBuilder: (ctx, i) { + final id = idList[i]; + final palette = TimetableInit.storage.palette[id]; + if (palette == null) return const SizedBox(); + return buildPaletteCard( + id, + palette, + selected: selectedId == id, + ).padH(6); + }, + ), + ], ); }