Fix(ui): Fix some ui bugs

Find Button In DeviceLogsScreen
Fix offlineText when in DarkMode
Update offlineIcons
This commit is contained in:
anhtunz
2025-04-04 10:32:50 +07:00
parent 6230036c04
commit 1ab544afbb
7 changed files with 131 additions and 137 deletions

View File

@@ -2,10 +2,10 @@
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:sfm_app/product/constant/app/app_constants.dart';
import 'widgets/tag_widget.dart';
import '../devices/device_model.dart';
import '../../bloc/device_logs_bloc.dart';
import '../../product/constant/app/app_constants.dart';
import '../../product/constant/icon/icon_constants.dart';
import '../../product/extension/context_extension.dart';
import '../../product/services/language_services.dart';
@@ -175,11 +175,11 @@ class _DeviceLogsScreenState extends State<DeviceLogsScreen> {
),
Center(
child: TextButton.icon(
style: const ButtonStyle(
style: ButtonStyle(
backgroundColor:
WidgetStatePropertyAll(Colors.green),
WidgetStatePropertyAll(Theme.of(context).primaryColor),
foregroundColor:
WidgetStatePropertyAll(Colors.white),
WidgetStatePropertyAll(Theme.of(context).colorScheme.surfaceBright),
),
onPressed: () {
if (fromDateApi.isEmpty) {
@@ -200,8 +200,7 @@ class _DeviceLogsScreenState extends State<DeviceLogsScreen> {
// log("ThingID: $thingID");
// log("From Date: ${DateTimeUtils.instance.formatDateTimeToString(dateTime!)}");
},
icon: IconConstants.instance
.getMaterialIcon(Icons.search),
icon: Icon(Icons.search,color: Theme.of(context).colorScheme.surfaceBright,),
label: Text(
appLocalization(context)
.find_button_content,