feat: Update action button styling and color in permission denied banner

This commit is contained in:
Achintha Isuru
2026-03-13 16:44:39 -04:00
parent accff00155
commit a2b102a96d
3 changed files with 18 additions and 14 deletions

View File

@@ -94,13 +94,13 @@ class UiNoticeBanner extends StatelessWidget {
), ),
), ),
], ],
if (action != null) ...<Widget>[
const SizedBox(height: UiConstants.space2),
action!,
],
], ],
), ),
), ),
if (action != null) ...<Widget>[
const SizedBox(width: UiConstants.space3),
action!,
],
], ],
), ),
); );

View File

@@ -22,16 +22,19 @@ class BannerActionButton extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return GestureDetector( return UiButton.secondary(
onTap: onPressed, text: label,
child: Text( size: UiButtonSize.extraSmall,
label, style: color != null
style: UiTypography.body3m.copyWith( ? ButtonStyle(
color: color ?? UiColors.primary, foregroundColor: WidgetStateProperty.all(color),
decoration: TextDecoration.underline, side: WidgetStateProperty.all(BorderSide(color: color!)),
decorationColor: color ?? UiColors.primary, shape: WidgetStateProperty.all(
), RoundedRectangleBorder(borderRadius: UiConstants.radiusMd),
), ),
)
: null,
onPressed: onPressed,
); );
} }
} }

View File

@@ -27,6 +27,7 @@ class PermissionDeniedForeverBanner extends StatelessWidget {
descriptionColor: UiColors.textError, descriptionColor: UiColors.textError,
action: BannerActionButton( action: BannerActionButton(
label: i18n.open_settings, label: i18n.open_settings,
color: UiColors.textError,
onPressed: () => onPressed: () =>
Modular.get<GeofenceServiceInterface>().openAppSettings(), Modular.get<GeofenceServiceInterface>().openAppSettings(),
), ),