fix: loading not centered

This commit is contained in:
Alzalia 2025-08-08 01:38:49 +02:00
parent 658585b572
commit 7319e5a1a6
2 changed files with 5 additions and 5 deletions

View file

@ -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;
}
}

View file

@ -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),