Kaynağa Gözat

Merge remote-tracking branch 'origin/1.22.0_master' into 1.22.0_master

tags/0.0.16+3^0
PH2 3 yıl önce
ebeveyn
işleme
f40f87c15b
1 değiştirilmiş dosya ile 17 ekleme ve 6 silme
  1. +17
    -6
      lib/pages/home_page/home_page.dart

+ 17
- 6
lib/pages/home_page/home_page.dart Dosyayı Görüntüle

@@ -164,6 +164,7 @@ class _HomePageState extends State<HomePage>

@override
void dispose() {
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Homepagedispose>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
WidgetsBinding.instance.removeObserver(this);
streamSubscription.cancel();
reloadSubscription?.cancel();
@@ -207,13 +208,23 @@ class _HomePageState extends State<HomePage>
_currentIndex = 0;
}

return Scaffold(
body: IndexedStack(
index: _currentIndex,
children: contentWidgets,
return WillPopScope(
onWillPop: () async{
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>HomepageBack>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
EventUtil.instance.fire("HomepageSignOut");
// 退出app
// await SystemChannels.platform.invokeMethod('SystemNavigator.pop');
return true;

},
child: Scaffold(
body: IndexedStack(
index: _currentIndex,
children: contentWidgets,
),
//底部导航栏
bottomNavigationBar: createBottomNavigationBar(tabs),
),
//底部导航栏
bottomNavigationBar: createBottomNavigationBar(tabs),
);
}



Yükleniyor…
İptal
Kaydet