refactor: Move widgets to lib
This commit is contained in:
parent
3a200a98d8
commit
c8827ae1b2
86 changed files with 136 additions and 136 deletions
14
lib/widgets/layouts/loading_view.dart
Normal file
14
lib/widgets/layouts/loading_view.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import 'package:adaptive_page_layout/adaptive_page_layout.dart';
|
||||
import 'package:fluffychat/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