forked from cwtch.im/cwtch-ui
appState support modal message
This commit is contained in:
parent
0ef219bbb6
commit
6ba447f941
|
@ -110,7 +110,7 @@ class FlwtchState extends State<Flwtch> {
|
|||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
title: 'Cwtch',
|
||||
theme: mkThemeData(settings),
|
||||
home: appState.cwtchInit == true ? ShiftRightFixer(child: ProfileMgrView()) : SplashView(),
|
||||
home: (!appState.cwtchInit || appState.modalState != ModalState.none) ? SplashView() : ShiftRightFixer(child: ProfileMgrView()),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
|
|
@ -26,8 +26,14 @@ class ChatMessage {
|
|||
};
|
||||
}
|
||||
|
||||
enum ModalState {
|
||||
none,
|
||||
storageMigration
|
||||
}
|
||||
|
||||
class AppState extends ChangeNotifier {
|
||||
bool cwtchInit = false;
|
||||
ModalState modalState = ModalState.none;
|
||||
bool cwtchIsClosing = false;
|
||||
String appError = "";
|
||||
String? _selectedProfile;
|
||||
|
|
Loading…
Reference in New Issue