Fix(ui): Fix some ui bugs
Find Button In DeviceLogsScreen Fix offlineText when in DarkMode Update offlineIcons
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user