fix: loading not centered
This commit is contained in:
parent
658585b572
commit
7319e5a1a6
2 changed files with 5 additions and 5 deletions
|
|
@ -122,10 +122,10 @@ class AddViewModel extends ChangeNotifier {
|
|||
debugPrint("Oupsie daysie, ${result.error}");
|
||||
}
|
||||
notifyListeners();
|
||||
_ownerRepository.liveOwners().listen((Owner owner) {
|
||||
_owners.add(owner);
|
||||
notifyListeners();
|
||||
});
|
||||
// _ownerRepository.liveOwners().listen((Owner owner) {
|
||||
// _owners.add(owner);
|
||||
// notifyListeners();
|
||||
// });
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class _AddPageState extends State<AddPage> {
|
|||
body: ListenableBuilder(
|
||||
listenable: widget.viewModel,
|
||||
builder: (context, child) => switch (widget.viewModel.isLoaded) {
|
||||
false => CircularProgressIndicator(),
|
||||
false => Center(child: CircularProgressIndicator()),
|
||||
true => Stack(
|
||||
children: [
|
||||
ColoredBox(color: Colors.black),
|
||||
|
|
|
|||
Reference in a new issue