From 6e2c27cfb1ba618c29d3acdc79c71181f7463db0 Mon Sep 17 00:00:00 2001 From: grummbeer Date: Fri, 17 Mar 2023 17:40:48 +0100 Subject: [PATCH] Unify Input. Remove hardcoded style (settings port) --- flutter/lib/desktop/pages/desktop_setting_page.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flutter/lib/desktop/pages/desktop_setting_page.dart b/flutter/lib/desktop/pages/desktop_setting_page.dart index ed1a16995..d54561f70 100644 --- a/flutter/lib/desktop/pages/desktop_setting_page.dart +++ b/flutter/lib/desktop/pages/desktop_setting_page.dart @@ -769,7 +769,7 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin { 'Port', Row(children: [ SizedBox( - width: 80, + width: 95, child: TextField( controller: controller, enabled: enabled && !locked, @@ -778,13 +778,10 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin { FilteringTextInputFormatter.allow(RegExp( r'^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$')), ], - textAlign: TextAlign.end, decoration: const InputDecoration( hintText: '21118', - border: OutlineInputBorder(), contentPadding: - EdgeInsets.only(bottom: 10, top: 10, right: 10), - isCollapsed: true, + EdgeInsets.symmetric(vertical: 12, horizontal: 12), ), ).marginOnly(right: 15), ),