Skip to content

Commit

Permalink
fix: overflow on selecting other languages (#325)
Browse files Browse the repository at this point in the history
Co-authored-by: Sagar Raj <[email protected]>
  • Loading branch information
sagarrajgit and Sagar Raj authored Jan 13, 2024
1 parent 4a92d6b commit 67c5c86
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 19 deletions.
8 changes: 5 additions & 3 deletions lib/app/modules/settings/views/enable_24Hour_format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ class _Enable24HourFormatState extends State<Enable24HourFormat> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Enable 24 Hour Format'.tr,
style: Theme.of(context).textTheme.bodyLarge,
Expanded(
child: Text(
'Enable 24 Hour Format'.tr,
style: Theme.of(context).textTheme.bodyLarge,
),
),
Obx(
() => Switch.adaptive(
Expand Down
8 changes: 5 additions & 3 deletions lib/app/modules/settings/views/enable_haptic_feedback.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ class _EnableHapticFeedbackState extends State<EnableHapticFeedback> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Enable Haptic Feedback'.tr,
style: Theme.of(context).textTheme.bodyLarge,
Expanded(
child: Text(
'Enable Haptic Feedback'.tr,
style: Theme.of(context).textTheme.bodyLarge,
),
),
Obx(
() => Switch.adaptive(
Expand Down
16 changes: 9 additions & 7 deletions lib/app/modules/settings/views/enable_sorted_alarm_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ class _EnableSortedAlarmListState extends State<EnableSortedAlarmList> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Enable Sorted Alarm List'.tr,
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
color: widget.themeController.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
),
Expanded(
child: Text(
'Enable Sorted Alarm List'.tr,
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
color: widget.themeController.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
),
),
),
Obx(
() => Switch.adaptive(
Expand Down
8 changes: 5 additions & 3 deletions lib/app/modules/settings/views/theme_value_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ class _ThemeValueTileState extends State<ThemeValueTile> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Enable Light Mode'.tr,
style: Theme.of(context).textTheme.bodyLarge,
Expanded(
child: Text(
'Enable Light Mode'.tr,
style: Theme.of(context).textTheme.bodyLarge,
),
),
Obx(
() => Switch.adaptive(
Expand Down
8 changes: 5 additions & 3 deletions lib/app/modules/settings/views/weather_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,11 @@ class WeatherApi extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Open Weather Map API',
style: Theme.of(context).textTheme.bodyLarge,
Expanded(
child: Text(
'Open Weather Map API',
style: Theme.of(context).textTheme.bodyLarge,
),
),
Icon(
Icons.arrow_forward_ios_sharp,
Expand Down

0 comments on commit 67c5c86

Please sign in to comment.