From 5825464ed54449399e25392c941a719842d720e3 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Wed, 26 Mar 2025 11:00:49 +0300 Subject: [PATCH] ppm wo inspection back button added. --- .../pages/user/ppm/update_ppm/update_ppm.dart | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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) {