diff --git a/lib/views/pages/user/ppm/update_ppm/update_ppm.dart b/lib/views/pages/user/ppm/update_ppm/update_ppm.dart index 839a6090..51255a31 100644 --- a/lib/views/pages/user/ppm/update_ppm/update_ppm.dart +++ b/lib/views/pages/user/ppm/update_ppm/update_ppm.dart @@ -158,6 +158,7 @@ class _UpdatePpmState extends State with TickerProviderStateMixin { ), ), TabBarView( + physics: const NeverScrollableScrollPhysics(), children: [ WoInfoForm( planPreventiveVisit: _planPreventiveVisit, @@ -183,6 +184,24 @@ class _UpdatePpmState extends State 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 with TickerProviderStateMixin { }, label: context.translation.save, ).expanded, - 16.width, + 8.width, AppFilledButton( onPressed: () { if (tabIndex == 0) {