Skip to content

Commit

Permalink
Modified weather_tile.dart (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhin29 authored Mar 10, 2024
1 parent a79ff4d commit ec9faa5
Showing 1 changed file with 63 additions and 54 deletions.
117 changes: 63 additions & 54 deletions lib/app/modules/addOrUpdateAlarm/views/weather_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -460,71 +460,80 @@ class WeatherTile extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: width * 0.4,
child: TextButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
kprimaryColor,
Expanded(
flex: 2,
child: SizedBox(
width: width * 0.4,
child: TextButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all(
kprimaryColor,
),
),
),
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
'Go to settings'.tr,
style: Theme.of(context)
.textTheme
.displaySmall!
.copyWith(
color: themeController
.isLightMode.value
? kLightPrimaryTextColor
: ksecondaryTextColor,
),
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
'Go to settings'.tr,
style: Theme.of(context)
.textTheme
.displaySmall!
.copyWith(
color: themeController
.isLightMode.value
? kLightPrimaryTextColor
: ksecondaryTextColor,
),
),
),
onPressed: () {
Utils.hapticFeedback();
Get.back();
Get.toNamed('/settings');
},
),
onPressed: () {
Utils.hapticFeedback();
Get.back();
Get.toNamed('/settings');
},
),
),
SizedBox(
width: width * 0.05,
),
SizedBox(
width: width * 0.3,
child: TextButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
themeController.isLightMode.value
? kLightPrimaryTextColor
.withOpacity(0.5)
: kprimaryTextColor.withOpacity(0.5),
Expanded(
flex: 1,
child: SizedBox(
width: width * 0.3,
child: TextButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all(
themeController.isLightMode.value
? kLightPrimaryTextColor
.withOpacity(0.5)
: kprimaryTextColor.
withOpacity(0.5),
),
),
),
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
'Cancel'.tr,
style: Theme.of(context)
.textTheme
.displaySmall!
.copyWith(
color: themeController
.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
),
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
'Cancel'.tr,
style: Theme.of(context)
.textTheme
.displaySmall!
.copyWith(
color: themeController
.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
),
),
),
onPressed: () {
Utils.hapticFeedback();
Get.back();
},
),
onPressed: () {
Utils.hapticFeedback();
Get.back();
},
),
),
],
Expand Down

0 comments on commit ec9faa5

Please sign in to comment.