mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-05 03:29:30 +01:00
19 lines
549 B
Dart
19 lines
549 B
Dart
import 'package:adaptive_page_layout/adaptive_page_layout.dart';
|
|
import 'package:fluffychat/components/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(),
|
|
),
|
|
);
|
|
}
|
|
}
|