Fix(ui): Fix some ui bugs
Find Button In DeviceLogsScreen Fix offlineText when in DarkMode Update offlineIcons
This commit is contained in:
@@ -100,7 +100,7 @@ class _DetailDeviceScreenState extends State<DetailDeviceScreen> {
|
||||
if (sensorSnapshot.data != null) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(appLocalization(context).detail_message),
|
||||
title: Text(deviceSnapshot.data?.name ?? ""),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
@@ -122,28 +122,28 @@ class _DetailDeviceScreenState extends State<DetailDeviceScreen> {
|
||||
fit: BoxFit.fill,
|
||||
),
|
||||
),
|
||||
Center(
|
||||
child: Container(
|
||||
height: 50,
|
||||
width: 400,
|
||||
// color: Colors.blueAccent,
|
||||
alignment: Alignment.centerRight,
|
||||
margin: const EdgeInsets.fromLTRB(0, 0, 0, 50),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const SizedBox(),
|
||||
Text(
|
||||
deviceSnapshot.data?.name ?? "",
|
||||
style: const TextStyle(
|
||||
fontSize: 25,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
// Center(
|
||||
// child: Container(
|
||||
// height: 50,
|
||||
// width: 400,
|
||||
// // color: Colors.blueAccent,
|
||||
// alignment: Alignment.centerRight,
|
||||
// margin: const EdgeInsets.fromLTRB(0, 0, 0, 50),
|
||||
// child: Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
// children: [
|
||||
// const SizedBox(),
|
||||
// Text(
|
||||
// deviceSnapshot.data?.name ?? "",
|
||||
// style: const TextStyle(
|
||||
// fontSize: 25,
|
||||
// fontWeight: FontWeight.w600,
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -157,7 +157,7 @@ class _DetailDeviceScreenState extends State<DetailDeviceScreen> {
|
||||
width: context.dynamicWidth(0.5),
|
||||
decoration: BoxDecoration(
|
||||
color: DeviceUtils.instance
|
||||
.getTableRowColor(deviceSnapshot.data?.state ?? 3),
|
||||
.getTableRowColor(context,deviceSnapshot.data?.state ?? 3),
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
),
|
||||
alignment: Alignment.bottomCenter,
|
||||
@@ -192,7 +192,7 @@ class _DetailDeviceScreenState extends State<DetailDeviceScreen> {
|
||||
)
|
||||
: CircleAvatar(
|
||||
backgroundColor:
|
||||
DeviceUtils.instance.getTableRowColor(
|
||||
DeviceUtils.instance.getTableRowColor(context,
|
||||
deviceSnapshot.data?.state ?? 3,
|
||||
),
|
||||
minRadius: context.mediumValue,
|
||||
|
||||
Reference in New Issue
Block a user