Skip to content
Snippets Groups Projects
Commit f165345d authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: change loading indicator to icon

parent 5a13a6df
No related branches found
No related tags found
2 merge requests!5Clhp map,!4Clhp map
......@@ -64,7 +64,11 @@ class _DefaultPageState extends State<DefaultPage> {
builder: (BuildContext context, AsyncSnapshot<List<dynamic>> snapshot) {
// Display loading screen until data is fetched
if (snapshot.connectionState == ConnectionState.waiting) {
return const Center(child: CircularProgressIndicator());
return const Center(child: Icon(
Icons.severe_cold,
color: Colors.blue,
size: 100,
));
} else if (snapshot.hasError) {
return Center(child: Text('Error: ${snapshot.error}'));
} else {
......@@ -92,3 +96,4 @@ class _DefaultPageState extends State<DefaultPage> {
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment