update color scheme to use a consistent color (0xFF14384B) across multiple components

master
tahaalam 2 months ago
parent 93a645691a
commit 47642ecd4c

@ -64,7 +64,7 @@ class _ConfirmCancelOrderDialogState extends State<ConfirmCancelOrderDialog> {
fontSize: 14,
fontWeight: FontWeight.w700,
letterSpacing: -0.46,
color: Colors.red,
color: const Color(0xFF14384B),
),
),
),

@ -238,7 +238,7 @@ class _NewCMCPageState extends State<NewCMCPage> with TickerProviderStateMixin {
],
)
: Container(
color: Colors.red,
color: const Color(0xFF14384B),
child: NewCMCStepOnePage(
changePageViewIndex: changePageViewIndex,
cMCInsertPresOrderRequestModel: cMCInsertPresOrderRequestModel,

@ -63,7 +63,7 @@ class _NewCMCStepOnePageState extends State<NewCMCStepOnePage> {
children: [
Radio(
value: num.tryParse(widget.model.cmcAllServicesList[index].serviceID!),
activeColor: Colors.red[800],
activeColor: const Color(0xFF14384B),
onChanged: (newValue) async {
selectedItem = index;
PatientERCMCInsertServicesList patientERCMCInsertServicesList = PatientERCMCInsertServicesList(

@ -261,7 +261,7 @@ class _NewCMCStepTowPageState extends State<NewCMCStepTowPage> {
Padding(
padding: const EdgeInsets.only(left: 20, right: 20, top: 14, bottom: 14),
child: SecondaryButton(
color: Colors.red[800],
color: const Color(0xFF14384B),
textColor: Colors.white,
onTap: () {
setState(() {

@ -375,7 +375,7 @@ class MobileNumberTextFiled extends StatelessWidget {
flex: 1,
child: Icon(
Icons.phone,
color: Colors.red,
color: const Color(0xFF14384B),
)),
Expanded(
flex: 1,

@ -318,7 +318,7 @@ class _NewEReferralStepThreePageState extends State<NewEReferralStepThreePage> {
},
child: Icon(
Icons.close,
color: Colors.red[300],
color: const Color(0xFF14384B),
),
)
],

@ -327,7 +327,7 @@ class MobileNumberTextFiled extends StatelessWidget {
flex: 1,
child: Icon(
Icons.phone,
color: Colors.red,
color: const Color(0xFF14384B),
)),
Expanded(
flex: 1,

@ -95,7 +95,7 @@ class _SelectCityDialogState extends State<SelectCityDialog> {
child: Center(
child: Texts(
TranslationBase.of(context).cancel.toUpperCase(),
color: Colors.red,
color: const Color(0xFF14384B),
),
),
),

@ -1557,7 +1557,7 @@ class _SelectCountryDialogState extends State<SelectCountryDialog> {
child: Center(
child: Texts(
TranslationBase.of(context).cancel.toUpperCase(),
color: Colors.red,
color: const Color(0xFF14384B),
),
),
),

@ -90,7 +90,7 @@ class _SelectRelationTypeDialogState extends State<SelectRelationTypeDialog> {
child: Center(
child: Texts(
TranslationBase.of(context).cancel.toUpperCase(),
color: Colors.red,
color: const Color(0xFF14384B),
),
),
),

@ -290,7 +290,7 @@ class _EReferralConfirmSMSDialogState extends State<EReferralConfirmSMSDialog> {
width: double.maxFinite,
child: Texts(
model.error,
color: Colors.red,
color: const Color(0xFF14384B),
),
),
SizedBox(height: 20),

@ -61,7 +61,7 @@ class _ConfirmCancelOrderDialogState extends State<ConfirmCancelOrderDialog> {
child: Center(
child: Texts(
TranslationBase.of(context).cancel.toUpperCase(),
color: Colors.red,
color: const Color(0xFF14384B),
),
),
),

@ -77,7 +77,7 @@ class _CommonRadioButtonDialogState extends State<CommonRadioButtonDialog> {
child: TextButton(
child: Text(
TranslationBase.of(context).cancel,
style: TextStyle(color: Colors.redAccent, fontSize: 16, fontWeight: FontWeight.w500),
style: TextStyle(color: const Color(0xFF14384B), fontSize: 16, fontWeight: FontWeight.w500),
),
onPressed: () => Navigator.pop(context),
),
@ -86,7 +86,7 @@ class _CommonRadioButtonDialogState extends State<CommonRadioButtonDialog> {
child: TextButton(
child: Text(
TranslationBase.of(context).ok,
style: TextStyle(color: Colors.black87, fontSize: 16, fontWeight: FontWeight.w500),
style: TextStyle(color: const Color(0xFF14384B), fontSize: 16, fontWeight: FontWeight.w500),
),
onPressed: () => widget.onSelect(_selectedIndex),
),

@ -185,7 +185,7 @@ class ParkingPage extends StatelessWidget {
onTap: () => model.clearParking(),
child: Texts(
TranslationBase.of(context).clearMyData,
color: Colors.red,
color: const Color(0xFF14384B),
decoration: TextDecoration.underline,
))
],

@ -299,7 +299,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
},
child: Icon(
FontAwesomeIcons.trashAlt.data,
color: Colors.red[300],
color: const Color(0xFF14384B),
))
],
),

@ -241,7 +241,7 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
//MediaQuery.of(context).size.width / 2.8 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
// borderRadius: BorderRadius.only(topLeft: Radius.circular(6)
// ),
),
@ -435,7 +435,7 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
width: model.finalProducts[index].rxMessage != null ? MediaQuery.of(context).size.width / 3.70 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
//borderRadius: BorderRadius.only(topLeft: Radius.circular(5)),
),
child: model.finalProducts[index].rxMessage != null

@ -261,7 +261,7 @@ class _OffersCategorisePageState extends State<OffersCategorisePage> {
width: model.products[index].rxMessage != null ? MediaQuery.of(context).size.width / 5 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
),
child: model.products[index].rxMessage != null
@ -441,7 +441,7 @@ class _OffersCategorisePageState extends State<OffersCategorisePage> {
width: model.products[index].rxMessage != null ? MediaQuery.of(context).size.width / 5 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
),
child: model.products[index].rxMessage != null

@ -613,7 +613,7 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
),
child: Texts(
TranslationBase.of(context).offers.toUpperCase(),
color: Colors.red,
color: const Color(0xFF14384B),
fontSize: 13.0,
fontWeight: FontWeight.w900,
),
@ -820,7 +820,7 @@ class _ParentCategorisePageState extends State<ParentCategorisePage> {
width: model.parentProducts[index].rxMessage != null ? MediaQuery.of(context).size.width / 5.3 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
),
child: model.parentProducts[index].rxMessage != null

@ -254,7 +254,7 @@ class SearchBar extends SearchDelegate<String> {
height: 100,
width: 100,
child: Card(
color: Colors.red,
color: const Color(0xFF14384B),
child: Center(
child: Text(query),
),

@ -217,7 +217,7 @@ class _RecommendedProductsState extends State<RecommendedProducts> {
: 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(6),
),

@ -185,7 +185,7 @@ class _SearchProductsPageState extends State<SearchProductsPage> {
width: model.searchList[index].rxMessage != null ? MediaQuery.of(context).size.width / 3 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
),
child: model.searchList[index].rxMessage != null

@ -633,7 +633,7 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
width: model.subProducts[index].rxMessage != null ? MediaQuery.of(context).size.width / 3 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
),
child: model.subProducts[index].rxMessage != null
@ -781,7 +781,7 @@ class _SubCategorisePageState extends State<SubCategorisePage> {
width: model.subProducts[index].rxMessage != null ? MediaQuery.of(context).size.width / 3.70 : 0,
padding: EdgeInsets.all(4),
decoration: BoxDecoration(
color: Color(0xffb23838),
color: const Color(0xFF14384B),
//borderRadius: BorderRadius.only(topLeft: Radius.circular(5)),
),
child: model.subProducts[index].rxMessage != null

@ -120,7 +120,7 @@ bwThemes({fontName}) {
// subtitle1: TextStyle(color: Colors.red[900]),
),
tabBarTheme: TabBarThemeData(labelColor: Colors.red[900]),
tabBarTheme: TabBarThemeData(labelColor: const Color(0xFF14384B)),
disabledColor: Colors.grey[800],
// errorColor: Color.fromRGBO(235, 80, 60, 1.0),
@ -148,7 +148,7 @@ dimTheme({fontName}) {
return ThemeData(
fontFamily: fontName,
//projectProvider.isArabic ? 'Cairo' : 'WorkSans',
primarySwatch: Colors.red,
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
brightness: Brightness.dark,
useMaterial3: false,

@ -53,7 +53,7 @@ class AppToast {
alignment: Alignment.topCenter,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(radius.toDouble()),
color: Colors.red,
color: const Color(0xFF14384B),
),
child: Wrap(
children: [

@ -786,7 +786,7 @@ class Utils {
errorWidget: (context, url, error) {
return Icon(
Icons.error,
color: Colors.red,
color: const Color(0xFF14384B),
size: 50,
);
});

@ -522,7 +522,7 @@ Color getColor(String selectedColor) {
if ("black" == selectedColor) {
return Colors.black;
} else if ("red" == selectedColor) {
return Colors.red;
return const Color(0xFF14384B);
} else if ("blueAccent" == selectedColor) {
return Colors.blueAccent;
} else if ("blue" == selectedColor) {

@ -31,7 +31,7 @@ class RoundedContainer extends StatefulWidget {
this.margin = 10,
this.elevation = 1,
this.showBorder = false,
this.borderColor = Colors.red,
this.borderColor = const Color(0xFF14384B),
this.customCornerRaduis = false,
this.topLeft = 0,
this.topRight = 0,

@ -68,8 +68,8 @@ class LabResultWidget extends StatelessWidget {
height: 45.0,
child: CustomTextButton(
backgroundColor: Color(0xFFc5272d),
disabledForegroundColor: Colors.red[300]!.withOpacity(0.38),
disabledBackgroundColor: Colors.red[300]!.withOpacity(0.12),
disabledForegroundColor: const Color(0xFF14384B).withOpacity(0.38),
disabledBackgroundColor: const Color(0xFF14384B).withOpacity(0.12),
elevation: 0,
onPressed: () {
showKSADialog(context);

@ -35,7 +35,7 @@ class _ShimmerLoadingWidgetState extends State<ShimmerLoadingWidget> {
if (snapshot.hasError) {
widget = Texts(
"Error happened",
color: Colors.red,
color: const Color(0xFF14384B),
fontSize: 20,
bold: true,
);

@ -155,12 +155,12 @@ class _OfferPackagesItemWidgetState extends State<OfferPackagesItemWidget> {
children: [
Texts(
widget.model.title,
color: Colors.red,
color: const Color(0xFF14384B),
fontSize: 20,
),
Texts(
widget.model.desc,
color: Colors.red,
color: const Color(0xFF14384B),
fontSize: 12,
),
Container(

@ -12,7 +12,6 @@ class WeatherSlider extends StatelessWidget {
WeatherSlider(this.data, this.projectViewModel);
LinearGradient red = LinearGradient(colors: [const Color(0xFF14384B), const Color(0xFF14384B)]);
LinearGradient green = LinearGradient(colors: [Colors.greenAccent[100]!, Colors.greenAccent]);
LinearGradient grey = LinearGradient(colors: [Colors.grey[100]!, Colors.grey]);
LinearGradient orange = LinearGradient(colors: [Colors.orangeAccent[100]!, Colors.orange]);
LinearGradient yellow = LinearGradient(colors: [Colors.yellow[100]!, Colors.yellow[600]!]);
@ -65,7 +64,7 @@ class WeatherSlider extends StatelessWidget {
width: 0,
decoration: ShapeDecoration(
color: data.colorName == 'red'
? Colors.redAccent
? const Color(0xFF14384B)
: data.colorName == 'orange'
? Colors.orangeAccent
: data.colorName == 'green'
@ -84,7 +83,7 @@ class WeatherSlider extends StatelessWidget {
width: 0,
decoration: ShapeDecoration(
color: data.colorName == 'red'
? Colors.redAccent
? const Color(0xFF14384B)
: data.colorName == 'orange'
? Colors.orangeAccent
: data.colorName == 'green'
@ -131,7 +130,7 @@ class WeatherSlider extends StatelessWidget {
AppText(data.categoriesNames!.category3!,
fontSize: 12,
color: data.categoriesNames!.category3 == data.category && data.colorName == 'red'
? Colors.redAccent!
? const Color(0xFF14384B)
: data.categoriesNames!.category3! == data.category && data.colorName == 'orange'
? Colors.orangeAccent!
: data.categoriesNames!.category3 == data.category && data.colorName == 'green'
@ -153,7 +152,7 @@ class WeatherSlider extends StatelessWidget {
AppText(data.categoriesNames!.category5!,
fontSize: 12,
color: data.categoriesNames!.category5 == data.category && data.colorName == 'red'
? Colors.redAccent
? const Color(0xFF14384B)
: data.categoriesNames!.category5! == data.category && data.colorName == 'orange'
? Colors.orangeAccent
: data.categoriesNames!.category5! == data.category && data.colorName == 'green'

Loading…
Cancel
Save