From 5f4e5ae9df4391ed61c2d58b1e7b8d764a904d0e Mon Sep 17 00:00:00 2001 From: grummbeer Date: Tue, 14 Mar 2023 18:31:38 +0100 Subject: [PATCH 1/2] Unify dialogs. Align buttons to the right --- flutter/lib/common.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 3138dd14d..f6bcf5515 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -839,7 +839,6 @@ class CustomAlertDialog extends StatelessWidget { ), actions: actions, actionsPadding: EdgeInsets.fromLTRB(padding, 0, padding, padding), - actionsAlignment: MainAxisAlignment.center, ), ); } From e67f9a94ee1b902ee3cf4af1c0c582e9c016a5e8 Mon Sep 17 00:00:00 2001 From: grummbeer Date: Fri, 17 Mar 2023 12:44:07 +0100 Subject: [PATCH 2/2] Unify dialogs. Separate inputDecorationTheme for mobile --- flutter/lib/common.dart | 44 ++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index f6bcf5515..3e66e7883 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -201,16 +201,18 @@ class MyTheme { ), ), ), - inputDecorationTheme: InputDecorationTheme( - fillColor: grayBg, - filled: true, - isDense: true, - contentPadding: EdgeInsets.all(15), - border: UnderlineInputBorder( - borderRadius: BorderRadius.circular(18), - borderSide: BorderSide.none, - ), - ), + inputDecorationTheme: isDesktop + ? InputDecorationTheme( + fillColor: grayBg, + filled: true, + isDense: true, + contentPadding: EdgeInsets.all(15), + border: UnderlineInputBorder( + borderRadius: BorderRadius.circular(18), + borderSide: BorderSide.none, + ), + ) + : null, textTheme: const TextTheme( titleLarge: TextStyle(fontSize: 19, color: Colors.black87), titleSmall: TextStyle(fontSize: 14, color: Colors.black87), @@ -295,16 +297,18 @@ class MyTheme { ), ), ), - inputDecorationTheme: InputDecorationTheme( - fillColor: Color(0xFF24252B), - filled: true, - isDense: true, - contentPadding: EdgeInsets.all(15), - border: UnderlineInputBorder( - borderRadius: BorderRadius.circular(18), - borderSide: BorderSide.none, - ), - ), + inputDecorationTheme: isDesktop + ? InputDecorationTheme( + fillColor: Color(0xFF24252B), + filled: true, + isDense: true, + contentPadding: EdgeInsets.all(15), + border: UnderlineInputBorder( + borderRadius: BorderRadius.circular(18), + borderSide: BorderSide.none, + ), + ) + : null, textTheme: const TextTheme( titleLarge: TextStyle(fontSize: 19), titleSmall: TextStyle(fontSize: 14),