Skeleton Delay für group- und group create view #58
@@ -34,7 +34,10 @@ class _GroupsViewState extends State<GroupsView> {
|
|||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
db = Provider.of<AppDatabase>(context, listen: false);
|
db = Provider.of<AppDatabase>(context, listen: false);
|
||||||
_allGroupsFuture = db.groupDao.getAllGroups();
|
_allGroupsFuture = Future.delayed(
|
||||||
|
const Duration(milliseconds: 400),
|
||||||
|
() => db.groupDao.getAllGroups(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
Reference in New Issue
Block a user