更新微信登录
This commit is contained in:
@@ -68,11 +68,11 @@ class MainPageBottomChange extends GetView<MainPageController> {
|
||||
);
|
||||
}
|
||||
|
||||
List arr = [
|
||||
List<Widget> arr = [
|
||||
HomePage(),
|
||||
// SleepReportPage(),
|
||||
// EPage(),
|
||||
EPage(sleepUri:"https://xiaoe.he-info.cn/"),
|
||||
EPage(sleepUri: "https://xiaoe.he-info.cn/"),
|
||||
MessagePage(),
|
||||
MinePage(),
|
||||
];
|
||||
@@ -81,7 +81,7 @@ class MainPageBottomChange extends GetView<MainPageController> {
|
||||
final getStorage = GetStorage();
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Future.delayed(const Duration(milliseconds: 0), () {
|
||||
Future.delayed(const Duration(milliseconds: 0), () {
|
||||
String? isShowYingShiDialog = getStorage.read("isShowYingShiDialog");
|
||||
if (isShowYingShiDialog == null || isShowYingShiDialog != "true") {
|
||||
String btnName = "同意".tr;
|
||||
@@ -134,7 +134,13 @@ class MainPageBottomChange extends GetView<MainPageController> {
|
||||
() {
|
||||
if (globalController.model.hideBottomNavigationBar == true) {
|
||||
return Scaffold(
|
||||
body: arr[controller.model.currentIndex],
|
||||
// body: arr[controller.model.currentIndex],
|
||||
body: IndexedStack(
|
||||
// ✅ 改成 IndexedStack
|
||||
index: controller.model.currentIndex,
|
||||
children:
|
||||
arr.map((page) => SizedBox.expand(child: page)).toList(),
|
||||
),
|
||||
floatingActionButtonAnimator:
|
||||
FloatingActionButtonAnimator.noAnimation,
|
||||
floatingActionButton: Container(),
|
||||
@@ -150,6 +156,13 @@ class MainPageBottomChange extends GetView<MainPageController> {
|
||||
child: Scaffold(
|
||||
backgroundColor: Colors.transparent,
|
||||
body: arr[controller.model.currentIndex],
|
||||
// body: IndexedStack(
|
||||
// // ✅ 改成 IndexedStack
|
||||
// index: controller.model.currentIndex,
|
||||
// children: arr
|
||||
// .map((page) => SizedBox.expand(child: page))
|
||||
// .toList(),
|
||||
// ),
|
||||
floatingActionButtonAnimator:
|
||||
FloatingActionButtonAnimator.noAnimation,
|
||||
floatingActionButtonLocation:
|
||||
|
||||
Reference in New Issue
Block a user