页面切换
This commit is contained in:
parent
23c509d556
commit
fef2c606c7
@ -11,7 +11,7 @@ class CollectionPageView extends GetView {
|
||||
title: const Text("收藏"),
|
||||
),
|
||||
body: const Center(
|
||||
child: Text("xxxxx"),
|
||||
child: Text("收藏的...."),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ class DownloadPageView extends GetView {
|
||||
title: const Text("下载"),
|
||||
),
|
||||
body: const Center(
|
||||
child: Text("xxxxx"),
|
||||
child: Text("下载的..."),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ class MyPageView extends GetView {
|
||||
title: const Text("我的"),
|
||||
),
|
||||
body: const Center(
|
||||
child: Text("xxxxx"),
|
||||
child: Text("我的..."),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ class TabbarPageView extends GetView <TabbarPageController>{
|
||||
currentIndex: controller.currentIdenx.value,
|
||||
onTap: controller.onItemTapped,
|
||||
)),
|
||||
body: childPageList[0],
|
||||
body: Obx(() => childPageList[controller.currentIdenx.value],)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user