From 07af3c344f749724898f8401ea5494658693468d Mon Sep 17 00:00:00 2001 From: anhtunz Date: Tue, 15 Apr 2025 11:59:18 +0700 Subject: [PATCH] chore(ui): Set width device_name's column to 1/3 size_width in device_manager_screen update text color on button show_direction_widget --- lib/feature/devices/devices_manager_screen.dart | 5 +++-- lib/feature/map/widget/show_direction_widget.dart | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/feature/devices/devices_manager_screen.dart b/lib/feature/devices/devices_manager_screen.dart index ecafd15..7b88736 100644 --- a/lib/feature/devices/devices_manager_screen.dart +++ b/lib/feature/devices/devices_manager_screen.dart @@ -111,7 +111,8 @@ class _DevicesManagerScreenState extends State { RoleEnums.ADMIN.name || roleSnapshot.data == RoleEnums.USER.name) - DataColumn( + DataColumn2( + fixedWidth: context.dynamicWidth(0.3), label: Text(appLocalization(context) .paginated_data_table_column_deviceName), ), @@ -227,7 +228,7 @@ class _DevicesManagerScreenState extends State { double getTableHeight(int dataLength){ if(dataLength < 3){ - return context.dynamicHeight(0.3); + return context.dynamicHeight(0.35); }else { return context.dynamicHeight(0.4); } diff --git a/lib/feature/map/widget/show_direction_widget.dart b/lib/feature/map/widget/show_direction_widget.dart index f86f5d3..f83e268 100644 --- a/lib/feature/map/widget/show_direction_widget.dart +++ b/lib/feature/map/widget/show_direction_widget.dart @@ -110,10 +110,6 @@ showDirections( label: Text( appLocalization(context).map_stream, ), - style: ButtonStyle( - backgroundColor: - WidgetStateProperty.all(Colors.blue[300]!), - ), ), ], ),