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
This commit is contained in:
@@ -111,7 +111,8 @@ class _DevicesManagerScreenState extends State<DevicesManagerScreen> {
|
|||||||
RoleEnums.ADMIN.name ||
|
RoleEnums.ADMIN.name ||
|
||||||
roleSnapshot.data ==
|
roleSnapshot.data ==
|
||||||
RoleEnums.USER.name)
|
RoleEnums.USER.name)
|
||||||
DataColumn(
|
DataColumn2(
|
||||||
|
fixedWidth: context.dynamicWidth(0.3),
|
||||||
label: Text(appLocalization(context)
|
label: Text(appLocalization(context)
|
||||||
.paginated_data_table_column_deviceName),
|
.paginated_data_table_column_deviceName),
|
||||||
),
|
),
|
||||||
@@ -227,7 +228,7 @@ class _DevicesManagerScreenState extends State<DevicesManagerScreen> {
|
|||||||
|
|
||||||
double getTableHeight(int dataLength){
|
double getTableHeight(int dataLength){
|
||||||
if(dataLength < 3){
|
if(dataLength < 3){
|
||||||
return context.dynamicHeight(0.3);
|
return context.dynamicHeight(0.35);
|
||||||
}else {
|
}else {
|
||||||
return context.dynamicHeight(0.4);
|
return context.dynamicHeight(0.4);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,10 +110,6 @@ showDirections(
|
|||||||
label: Text(
|
label: Text(
|
||||||
appLocalization(context).map_stream,
|
appLocalization(context).map_stream,
|
||||||
),
|
),
|
||||||
style: ButtonStyle(
|
|
||||||
backgroundColor:
|
|
||||||
WidgetStateProperty.all<Color>(Colors.blue[300]!),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user