handle exceptions by throwing, not with results
This commit is contained in:
@@ -106,6 +106,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
},
|
||||
);
|
||||
} else if (snapshot.hasError) {
|
||||
log.warning("Error loading sheets:", snapshot.error);
|
||||
return Center(
|
||||
child: Text(
|
||||
style: Theme.of(
|
||||
|
||||
Reference in New Issue
Block a user