mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-26 09:49:41 +00:00
Refactor color management and UI components for consistency
- Updated color references in various widgets to use the new `opaquePrimary` color for better visual consistency. - Refactored `ColorsManager` to improve color definitions and removed redundant color declarations. - Enhanced UI elements across multiple dialogs and widgets to ensure a cohesive design language. This change promotes maintainability and aligns with the updated color scheme.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/all_devices/models/device_status.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/schedule_device/schedule_widgets/schedule_mode_buttons.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/water_heater/models/schedule_entry.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/all_devices/models/device_status.dart';
|
||||
import 'package:syncrow_web/utils/color_manager.dart';
|
||||
|
||||
class ScheduleDialogHelper {
|
||||
@ -58,7 +58,7 @@ class ScheduleDialogHelper {
|
||||
Text(
|
||||
isEdit ? 'Edit Schedule' : 'Add Schedule',
|
||||
style: Theme.of(context).textTheme.titleLarge!.copyWith(
|
||||
color: ColorsManager.primaryColorWithOpacity,
|
||||
color: ColorsManager.opaquePrimary,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: 30,
|
||||
),
|
||||
@ -171,8 +171,8 @@ class ScheduleDialogHelper {
|
||||
return result;
|
||||
}
|
||||
|
||||
static Widget _buildDayCheckboxes(BuildContext ctx, List<bool> selectedDays,
|
||||
Function(int, bool) onChanged) {
|
||||
static Widget _buildDayCheckboxes(
|
||||
BuildContext ctx, List<bool> selectedDays, Function(int, bool) onChanged) {
|
||||
final dayLabels = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
@ -197,8 +197,7 @@ class ScheduleDialogHelper {
|
||||
children: [
|
||||
Text(
|
||||
'Function:',
|
||||
style:
|
||||
Theme.of(ctx).textTheme.bodySmall!.copyWith(color: Colors.grey),
|
||||
style: Theme.of(ctx).textTheme.bodySmall!.copyWith(color: Colors.grey),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Radio<bool>(
|
||||
@ -213,7 +212,6 @@ class ScheduleDialogHelper {
|
||||
Radio<bool>(
|
||||
activeColor: ColorsManager.secondaryColor,
|
||||
focusColor: ColorsManager.secondaryColor,
|
||||
|
||||
value: false,
|
||||
groupValue: isOn,
|
||||
onChanged: (val) => onChanged(false),
|
||||
|
Reference in New Issue
Block a user