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( body: Form(
key: _formKey, key: _formKey,
child: TabBarView( child: isFullscreen
key: ValueKey(viewModel.task.id), ? TaskEditDetailsScreen(key: ValueKey('__${_updatedAt}__'))
controller: _controller, : TabBarView(
children: <Widget>[ key: ValueKey(viewModel.task.id),
TaskEditDetailsScreen(key: ValueKey('__${_updatedAt}__')), controller: _controller,
TaskEditTimesScreen(), children: <Widget>[
], TaskEditDetailsScreen(),
), TaskEditTimesScreen(),
],
),
), ),
bottomNavigationBar: BottomAppBar( bottomNavigationBar: BottomAppBar(
elevation: 0, elevation: 0,