Skip to content

Commit

Permalink
Padding added to snooze button in preview alarm (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameermansoori1 authored Dec 27, 2023
1 parent 5a4e315 commit 3413230
Showing 1 changed file with 30 additions and 23 deletions.
53 changes: 30 additions & 23 deletions lib/app/modules/alarmRing/views/alarm_ring_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,31 +171,38 @@ class AlarmControlView extends GetView<AlarmControlController> {
Obx(
() => Visibility(
visible: !controller.isSnoozing.value,
child: SizedBox(
height: height * 0.07,
width: width * 0.5,
child: TextButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
themeController.isLightMode.value
? kLightSecondaryBackgroundColor
: ksecondaryBackgroundColor,
child: Obx(
() => Padding(
padding: Get.arguments != null
? const EdgeInsets.symmetric(vertical: 90.0)
: EdgeInsets.zero,
child: SizedBox(
height: height * 0.07,
width: width * 0.5,
child: TextButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
themeController.isLightMode.value
? kLightSecondaryBackgroundColor
: ksecondaryBackgroundColor,
),
),
child: Text(
'Snooze',
style:
Theme.of(context).textTheme.bodyMedium!.copyWith(
color: themeController.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
fontWeight: FontWeight.w600,
),
),
onPressed: () {
Utils.hapticFeedback();
controller.startSnooze();
},
),
),
child: Text(
'Snooze',
style:
Theme.of(context).textTheme.bodyMedium!.copyWith(
color: themeController.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
fontWeight: FontWeight.w600,
),
),
onPressed: () {
Utils.hapticFeedback();
controller.startSnooze();
},
),
),
),
Expand Down

0 comments on commit 3413230

Please sign in to comment.