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> { ...@@ -78,11 +78,18 @@ class _DefaultPageState extends State<DefaultPage> {
builder: (BuildContext context, AsyncSnapshot<List<dynamic>> snapshot) { builder: (BuildContext context, AsyncSnapshot<List<dynamic>> snapshot) {
// Display loading screen until data is fetched // Display loading screen until data is fetched
if (snapshot.connectionState == ConnectionState.waiting) { if (snapshot.connectionState == ConnectionState.waiting) {
return const Center(child: Icon( return Container(
Icons.severe_cold, decoration: const BoxDecoration( // Background color for loading screen
color: Colors.blue, color: darkestBlue,
size: 100, ),
)); child: const Center(
child: Icon(
Icons.severe_cold, // Loading screen icon
color: lightBlue,
size: 100,
),
),
);
} else if (snapshot.hasError) { } else if (snapshot.hasError) {
return Center(child: Text('Error: ${snapshot.error}')); return Center(child: Text('Error: ${snapshot.error}'));
} else { } 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