6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 9793e176

AuthorEdmir Suljic<esu@dwarf.dk>
Date2025-06-04 15:41:54 +0200
Fixed compile issue

Changed files

.../lib/notifications/notifications_page.dart      | 66 ++++++++--------------
 1 file changed, 25 insertions(+), 41 deletions(-)

Diff

diff --git a/comwell_key_app/lib/notifications/notifications_page.dart b/comwell_key_app/lib/notifications/notifications_page.dart
index dd9e345b..56244c1b 100644
--- a/comwell_key_app/lib/notifications/notifications_page.dart
+++ b/comwell_key_app/lib/notifications/notifications_page.dart
@@ -99,51 +99,35 @@ class NotificationsPage extends StatelessWidget {
const SizedBox(height: 16),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
- child: SizedBox(
- width: double.infinity,
- height: 50,
- child: ElevatedButton(
- onPressed: () {
- cubit.updatePreferences(
- cubit.state.allNotifications, cubit.user.id);
- },
- style: ElevatedButton.styleFrom(
- backgroundColor: sandColor,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(30),
- ),
- ),
- child: Text(
- 'save'.tr(),
- style: const TextStyle(
- color: Colors.white,
- fontSize: 16,
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ SizedBox(
+ width: double.infinity,
+ height: 50,
+ child: ElevatedButton(
+ onPressed: () {
+ cubit.updatePreferences(
+ cubit.state.allNotifications, cubit.user.id);
+ },
+ style: theme.elevatedButtonTheme.style?.copyWith(
+ shape: WidgetStatePropertyAll(
+ RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(8))),
+ ),
+ child: Text(
+ 'save'.tr(),
+ style: const TextStyle(
+ color: Colors.white,
+ fontSize: 16,
+ ),
+ ),
),
),
-
- ),
- SizedBox(
- width: double.infinity,
- height: 50,
- child: ElevatedButton(
- onPressed: () {
- cubit.updatePreferences(
- cubit.state.allNotifications, cubit.user.id);
- },
- style: theme.elevatedButtonTheme.style?.copyWith(
- shape: WidgetStatePropertyAll(
- RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(8))),
- ),
- child: Text(
- 'save'.tr(),
- style: const TextStyle(
- color: Colors.white,
- fontSize: 16,
- ),
+ const SizedBox(height: 16),
+ ],
),
),
- const SizedBox(height: 16),
],
),
],