Almost all done, need fix logout.

This commit is contained in:
Ivan Murashov
2018-03-11 12:48:45 +03:00
parent 47b45eecbf
commit 0c5645c059
4 changed files with 12 additions and 14 deletions

View File

@@ -28,20 +28,13 @@ class SplashScreen extends BaseScreen {
class _SplashScreenState extends BaseState<SplashScreen> {
_SplashScreenState(SqliteHelper helper, String app) : super(helper, app);
bool a = false;
bool a = true;
bool isAutomaticallyImplyLeading() => false;
@override
void initState() {
print('init state!');
new Future.delayed(const Duration(milliseconds: 1000), () {
showNextScreen();
a = true;
});
showNextScreen();
super.initState();
}
@@ -173,6 +166,11 @@ class _SplashScreenState extends BaseState<SplashScreen> {
SqliteHelper helper) {
// Канал ловит вызовы методов из "нативной" части приложения.
// Могут быть вызваны либо exit либо faq, либо purchase.
setState(() {
a = false;
});
platform.setMethodCallHandler((MethodCall call) async {
print(this.toString());
if (call.method == 'findUser') {