|
|
|
|
@ -23,10 +23,10 @@ import 'package:test_sa/new_views/swipe_module/dialoge/acknowledge_work_dialog.d
|
|
|
|
|
import 'package:test_sa/providers/service_request_providers/reject_reason_provider.dart';
|
|
|
|
|
|
|
|
|
|
class FooterActionButton {
|
|
|
|
|
static Widget footerContainer({required Widget child,required BuildContext context}) {
|
|
|
|
|
static Widget footerContainer({required Widget child, required BuildContext context}) {
|
|
|
|
|
return Container(
|
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
|
padding: const EdgeInsets.only(left: 16, right: 16, top: 12,bottom: 8),
|
|
|
|
|
padding: const EdgeInsets.only(left: 16, right: 16, top: 12, bottom: 8),
|
|
|
|
|
color: AppColor.background(context),
|
|
|
|
|
child: SafeArea(child: child),
|
|
|
|
|
);
|
|
|
|
|
@ -92,7 +92,7 @@ class FooterActionButton {
|
|
|
|
|
context: context,
|
|
|
|
|
child: AppFilledButton(
|
|
|
|
|
label: context.translation.activities,
|
|
|
|
|
buttonColor: context.isDark? AppColor.primary10:AppColor.neutral50,
|
|
|
|
|
buttonColor: context.isDark ? AppColor.primary10 : AppColor.neutral50,
|
|
|
|
|
textColor: context.isDark ? AppColor.black10 : Colors.white,
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
Navigator.push(context, MaterialPageRoute(builder: (context) => const ActivitiesListView()));
|
|
|
|
|
@ -120,7 +120,7 @@ class FooterActionButton {
|
|
|
|
|
AppFilledButton(
|
|
|
|
|
label: context.translation.reject,
|
|
|
|
|
maxWidth: true,
|
|
|
|
|
buttonColor:AppColor.background(context),
|
|
|
|
|
buttonColor: AppColor.background(context),
|
|
|
|
|
// textColor: context.isDark ? AppColor.neutral30 : Colors.white,
|
|
|
|
|
textColor: AppColor.red30,
|
|
|
|
|
showBorder: true,
|
|
|
|
|
@ -208,7 +208,7 @@ class FooterActionButton {
|
|
|
|
|
AppFilledButton(
|
|
|
|
|
label: context.translation.activities,
|
|
|
|
|
textColor: context.isDark ? AppColor.black10 : Colors.white,
|
|
|
|
|
buttonColor: context.isDark? AppColor.primary10:AppColor.neutral50,
|
|
|
|
|
buttonColor: context.isDark ? AppColor.primary10 : AppColor.neutral50,
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
// ServiceRequestBottomSheet.activityTypeBottomSheet(context: context);
|
|
|
|
|
Navigator.push(context, MaterialPageRoute(builder: (context) => const ActivitiesListView()));
|
|
|
|
|
@ -254,7 +254,7 @@ class FooterActionButton {
|
|
|
|
|
child: AppFilledButton(
|
|
|
|
|
label: context.translation.assetRetiredPendingOpManagementApproval,
|
|
|
|
|
buttonColor: AppColor.background(context),
|
|
|
|
|
textColor: context.isDark ? Colors.white: AppColor.neutral150,
|
|
|
|
|
textColor: context.isDark ? Colors.white : AppColor.neutral150,
|
|
|
|
|
fontSize: 12.toScreenWidth,
|
|
|
|
|
));
|
|
|
|
|
case WorkOrderNextStepEnum.waitingForRequesterToConfirm:
|
|
|
|
|
@ -267,7 +267,7 @@ class FooterActionButton {
|
|
|
|
|
AppFilledButton(
|
|
|
|
|
label: 'Waiting for requester to verify',
|
|
|
|
|
buttonColor: AppColor.background(context),
|
|
|
|
|
textColor: context.isDark ? Colors.white: AppColor.neutral150,
|
|
|
|
|
textColor: context.isDark ? Colors.white : AppColor.neutral150,
|
|
|
|
|
// buttonColor: AppColor.neutral140,
|
|
|
|
|
// textColor: AppColor.neutral150,
|
|
|
|
|
fontSize: 12.toScreenWidth,
|
|
|
|
|
|