Full width task editor

This commit is contained in:
Hillel Coren 2020-12-22 09:07:51 +02:00
parent 3b19d5ae99
commit c49a44358c
1 changed files with 10 additions and 8 deletions

View File

@ -118,14 +118,16 @@ class _TaskEditState extends State<TaskEdit>
),
body: Form(
key: _formKey,
child: TabBarView(
key: ValueKey(viewModel.task.id),
controller: _controller,
children: <Widget>[
TaskEditDetailsScreen(key: ValueKey('__${_updatedAt}__')),
TaskEditTimesScreen(),
],
),
child: isFullscreen
? TaskEditDetailsScreen(key: ValueKey('__${_updatedAt}__'))
: TabBarView(
key: ValueKey(viewModel.task.id),
controller: _controller,
children: <Widget>[
TaskEditDetailsScreen(),
TaskEditTimesScreen(),
],
),
),
bottomNavigationBar: BottomAppBar(
elevation: 0,