This commit is contained in:
jyuesong
2022-01-17 16:59:04 +08:00
parent ad141e4bd1
commit 352d4e162c
3 changed files with 138 additions and 30 deletions

View File

@@ -86,24 +86,27 @@ class _HomePageState extends ConsumerState<HomePage> {
title: _title,
actions: actions,
),
body: IndexedStack(
index: _index,
children: [
const Positioned.fill(
child: TaskPage(),
),
const Positioned.fill(
child: EnvPage(),
),
Positioned.fill(
child: ConfigPage(
key: configKey,
body: ColoredBox(
color: ref.watch(themeProvider).themeColor.backGround(),
child: IndexedStack(
index: _index,
children: [
const Positioned.fill(
child: TaskPage(),
),
),
const Positioned.fill(
child: OtherPage(),
),
],
const Positioned.fill(
child: EnvPage(),
),
Positioned.fill(
child: ConfigPage(
key: configKey,
),
),
const Positioned.fill(
child: OtherPage(),
),
],
),
),
bottomNavigationBar: BottomNavigationBar(
items: titles