refactor: Widget file structure and MVC user bottom sheet
This commit is contained in:
parent
2e8c11fd76
commit
c1e2ef25a2
27 changed files with 268 additions and 264 deletions
14
lib/views/widgets/layouts/loading_view.dart
Normal file
14
lib/views/widgets/layouts/loading_view.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import 'package:adaptive_page_layout/adaptive_page_layout.dart';
|
||||
import 'package:fluffychat/views/widgets/matrix.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LoadingView extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (Matrix.of(context).loginState != null) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) =>
|
||||
AdaptivePageLayout.of(context).pushNamedAndRemoveAllOthers('/'));
|
||||
}
|
||||
return Scaffold(body: Center(child: CircularProgressIndicator()));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue