feat: better and centralized loading screen
This commit is contained in:
parent
eb83e9fbe3
commit
b751d93be6
11 changed files with 82 additions and 13 deletions
|
|
@ -9,6 +9,7 @@ import 'package:seshat/ui/add_page/widgets/form_popup.dart';
|
|||
import 'package:seshat/ui/add_page/widgets/owner_popup.dart';
|
||||
import 'package:seshat/ui/add_page/widgets/confirmation_popup.dart';
|
||||
import 'package:seshat/ui/core/ui/navigation_bar.dart';
|
||||
import 'package:seshat/ui/core/ui/await_loading.dart';
|
||||
import 'package:seshat/utils/result.dart';
|
||||
|
||||
class AddPage extends StatefulWidget {
|
||||
|
|
@ -37,7 +38,7 @@ class _AddPageState extends State<AddPage> {
|
|||
body: ListenableBuilder(
|
||||
listenable: widget.viewModel,
|
||||
builder: (context, child) => switch (widget.viewModel.isLoaded) {
|
||||
false => Center(child: CircularProgressIndicator()),
|
||||
false => AwaitLoading(),
|
||||
true => switch (widget.viewModel.currentBal) {
|
||||
null => Center(
|
||||
child: SizedBox(
|
||||
|
|
|
|||
Reference in a new issue