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

update: loading screen colors

parent 98426c70
No related branches found
No related tags found
2 merge requests!9Clhp map,!8Clhp map
......@@ -78,11 +78,18 @@ 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: Icon(
Icons.severe_cold,
color: Colors.blue,
size: 100,
));
return Container(
decoration: const BoxDecoration( // Background color for loading screen
color: darkestBlue,
),
child: const Center(
child: Icon(
Icons.severe_cold, // Loading screen icon
color: lightBlue,
size: 100,
),
),
);
} else if (snapshot.hasError) {
return Center(child: Text('Error: ${snapshot.error}'));
} else {
......
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