feat: Update action button styling and color in permission denied banner
This commit is contained in:
@@ -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!,
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user