add const your text
This commit is contained in:
@@ -85,14 +85,14 @@ class _HomeState extends State<Home> {
|
|||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
return HomeTileGrid(
|
return HomeTileGrid(
|
||||||
signedInUser: snapshot.data![0] as AppUser,
|
signedInUser: snapshot.data![0] as AppUser,
|
||||||
businessUser: snapshot.data![1] as BusinessUser,
|
businessUser: snapshot.data![1] as BusinessUser?,
|
||||||
business: snapshot.data![2] as Business,
|
business: snapshot.data![2] as Business?,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Center(
|
return Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
'${snapshot.error} occurred',
|
'${snapshot.error} occurred',
|
||||||
style: TextStyle(fontSize: 18),
|
style: const TextStyle(fontSize: 18),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user