Almost all done, need fix logout.
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user