mirror of
https://github.com/Uuttssaavv/flutter-clean-architecture-riverpod.git
synced 2025-08-26 10:35:38 +08:00
formatted files properly
This commit is contained in:
@ -59,7 +59,8 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
//show Snackbar on failure
|
||||
if (next.state == DashboardConcreteState.fetchedAllProducts) {
|
||||
if (next.message.isNotEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(next.message.toString())));
|
||||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(SnackBar(content: Text(next.message.toString())));
|
||||
}
|
||||
}
|
||||
}),
|
||||
@ -125,7 +126,9 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
itemBuilder: (context, index) {
|
||||
final product = state.productList[index];
|
||||
return ListTile(
|
||||
leading: CircleAvatar(backgroundImage: NetworkImage(product.thumbnail)),
|
||||
leading: CircleAvatar(
|
||||
backgroundImage:
|
||||
NetworkImage(product.thumbnail)),
|
||||
title: Text(
|
||||
product.title,
|
||||
style: Theme.of(context).textTheme.bodyLarge,
|
||||
|
@ -59,7 +59,9 @@ class DashboardDrawer extends ConsumerWidget {
|
||||
},
|
||||
child: CircleAvatar(
|
||||
child: Icon(
|
||||
Theme.of(context).brightness == Brightness.dark ? Icons.light_mode : Icons.dark_mode,
|
||||
Theme.of(context).brightness == Brightness.dark
|
||||
? Icons.light_mode
|
||||
: Icons.dark_mode,
|
||||
color: Theme.of(context).iconTheme.color,
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user