add const your text
This commit is contained in:
parent
98bfa84c1b
commit
1afbb4bad4
1 changed files with 3 additions and 3 deletions
|
|
@ -85,14 +85,14 @@ class _HomeState extends State<Home> {
|
|||
if (snapshot.hasData) {
|
||||
return HomeTileGrid(
|
||||
signedInUser: snapshot.data![0] as AppUser,
|
||||
businessUser: snapshot.data![1] as BusinessUser,
|
||||
business: snapshot.data![2] as Business,
|
||||
businessUser: snapshot.data![1] as BusinessUser?,
|
||||
business: snapshot.data![2] as Business?,
|
||||
);
|
||||
} else {
|
||||
return Center(
|
||||
child: Text(
|
||||
'${snapshot.error} occurred',
|
||||
style: TextStyle(fontSize: 18),
|
||||
style: const TextStyle(fontSize: 18),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue