Added uniform loading indicator for all screens
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:marianum_mobile/widget/loadingSpinner.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../../../../api/mhsl/message/getMessages/getMessagesResponse.dart';
|
||||
@ -30,7 +31,7 @@ class _MessageState extends State<Message> {
|
||||
title: const Text("Marianum Message"),
|
||||
),
|
||||
body: Consumer<MessageProps>(builder: (context, value, child) {
|
||||
if(value.primaryLoading()) return const Center(child: CircularProgressIndicator());
|
||||
if(value.primaryLoading()) return const LoadingSpinner();
|
||||
|
||||
return RefreshIndicator(
|
||||
child: ListView.builder(
|
||||
|
Reference in New Issue
Block a user