|
|
|
|
@ -158,6 +158,7 @@ class _UpdatePpmState extends State<UpdatePpm> with TickerProviderStateMixin {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
TabBarView(
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
children: [
|
|
|
|
|
WoInfoForm(
|
|
|
|
|
planPreventiveVisit: _planPreventiveVisit,
|
|
|
|
|
@ -183,6 +184,24 @@ class _UpdatePpmState extends State<UpdatePpm> with TickerProviderStateMixin {
|
|
|
|
|
).expanded,
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
if (tabIndex == 1) ...[
|
|
|
|
|
AppFilledButton(
|
|
|
|
|
buttonColor: _tabController!.index == 0 ? null:AppColor.background(context),
|
|
|
|
|
textColor: _tabController!.index == 0 ? null: AppColor.blueStatus(context),
|
|
|
|
|
showBorder: true,
|
|
|
|
|
disableButton: _tabController!.index == 0,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
if (_tabController!.index == 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
_tabController?.animateTo(_tabController!.index - 1);
|
|
|
|
|
setState(() {});
|
|
|
|
|
return;
|
|
|
|
|
},
|
|
|
|
|
label: context.translation.back,
|
|
|
|
|
).expanded,
|
|
|
|
|
8.width,
|
|
|
|
|
],
|
|
|
|
|
AppFilledButton(
|
|
|
|
|
buttonColor: AppColor.white60,
|
|
|
|
|
textColor: AppColor.neutral50,
|
|
|
|
|
@ -191,7 +210,7 @@ class _UpdatePpmState extends State<UpdatePpm> with TickerProviderStateMixin {
|
|
|
|
|
},
|
|
|
|
|
label: context.translation.save,
|
|
|
|
|
).expanded,
|
|
|
|
|
16.width,
|
|
|
|
|
8.width,
|
|
|
|
|
AppFilledButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
if (tabIndex == 0) {
|
|
|
|
|
|