fix: serval bugs

This commit is contained in:
Simon Ding
2024-07-12 13:35:37 +08:00
parent 76bf358de7
commit cfa6d2d54c
7 changed files with 79 additions and 40 deletions

View File

@@ -16,7 +16,7 @@ class WelcomePage extends ConsumerWidget {
return switch (data) {
AsyncData(:final value) => GridView.builder(
padding: const EdgeInsets.all(30),
padding: const EdgeInsets.all(30),
itemCount: value.length,
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 6),
@@ -48,7 +48,9 @@ class WelcomePage extends ConsumerWidget {
),
));
}),
_ => const CircularProgressIndicator(),
_ => const Center(
child: SizedBox(
width: 30, height: 30, child: CircularProgressIndicator())),
};
}
}