color manager

This commit is contained in:
hannathkadher
2025-01-09 13:32:09 +04:00
parent 390f7288bd
commit 097e70b906
17 changed files with 88 additions and 79 deletions

View File

@ -0,0 +1,50 @@
import 'package:flutter/material.dart';
import 'package:syncrow_web/utils/color_manager.dart';
class AddSpaceModelWidget extends StatelessWidget {
const AddSpaceModelWidget({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.all(8.0),
decoration: BoxDecoration(
color: ColorsManager.whiteColors,
borderRadius: BorderRadius.circular(20),
boxShadow: const [
BoxShadow(
color: ColorsManager.semiTransparentBlackColor,
blurRadius: 15,
offset: Offset(0, 4),
spreadRadius: 0,
),
BoxShadow(
color: ColorsManager.semiTransparentBlackColor,
blurRadius: 25,
offset: Offset(0, 15),
spreadRadius: -5,
),
],
),
child: Center(
child: Container(
width: 60,
height: 60, // Set a proper height here
decoration: BoxDecoration(
shape: BoxShape.circle,
color: ColorsManager.neutralGray,
border: Border.all(
color: ColorsManager.textFieldGreyColor,
width: 2.0,
),
),
child: const Icon(
Icons.add,
size: 40,
color: ColorsManager.spaceColor,
),
),
),
);
}
}

View File

@ -174,7 +174,7 @@ class CreateSpaceModelDialog extends StatelessWidget {
} else if (state is CreateSpaceModelError) {
return Text(
'Error: ${state.message}',
style: const TextStyle(color: Colors.red),
style: const TextStyle(color: ColorsManager.warningRed),
);
}

View File

@ -33,11 +33,11 @@ class SpaceModelCardWidget extends StatelessWidget {
return Container(
decoration: BoxDecoration(
color: Colors.white,
color: ColorsManager.whiteColors,
borderRadius: BorderRadius.circular(10),
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
color: ColorsManager.lightGrayColor.withOpacity(0.5),
spreadRadius: 2,
blurRadius: 5,
offset: const Offset(0, 3),

View File

@ -25,7 +25,7 @@ class SubspaceChipWidget extends StatelessWidget {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
side: const BorderSide(
color: Colors.transparent,
color: ColorsManager.transparentColor,
width: 0,
),
),

View File

@ -85,7 +85,7 @@ class SubspaceModelCreate extends StatelessWidget {
style: const TextStyle(
color: ColorsManager.spaceColor), // Text color
),
backgroundColor: Colors.white, // Chip background color
backgroundColor: ColorsManager.whiteColors, // Chip background color
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(16), // Rounded chip
@ -118,15 +118,15 @@ class SubspaceModelCreate extends StatelessWidget {
label: const Text(
'Edit',
style: TextStyle(
color: ColorsManager.spaceColor), // Text color
color: ColorsManager.spaceColor),
),
backgroundColor:
Colors.white, // Background color for "Edit"
ColorsManager.whiteColors,
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(16), // Rounded chip
BorderRadius.circular(16),
side: const BorderSide(
color: ColorsManager.spaceColor), // Border color
color: ColorsManager.spaceColor),
),
),
),

View File

@ -71,7 +71,7 @@ class TagChipDisplay extends StatelessWidget {
color: ColorsManager.spaceColor,
),
),
backgroundColor: Colors.white,
backgroundColor: ColorsManager.whiteColors,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16),
side: const BorderSide(
@ -104,14 +104,14 @@ class TagChipDisplay extends StatelessWidget {
label: const Text(
'Edit',
style: TextStyle(
color: ColorsManager.spaceColor), // Text color
color: ColorsManager.spaceColor),
),
backgroundColor:
Colors.white, // Background color for "Edit"
ColorsManager.whiteColors,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16), // Rounded chip
borderRadius: BorderRadius.circular(16),
side: const BorderSide(
color: ColorsManager.spaceColor), // Border color
color: ColorsManager.spaceColor),
),
),
),