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, fontSize: 14,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
letterSpacing: -0.46, letterSpacing: -0.46,
color: Colors.red, color: const Color(0xFF14384B),
), ),
), ),
), ),

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

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

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

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

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

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

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

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

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

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

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

@ -77,7 +77,7 @@ class _CommonRadioButtonDialogState extends State<CommonRadioButtonDialog> {
child: TextButton( child: TextButton(
child: Text( child: Text(
TranslationBase.of(context).cancel, 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), onPressed: () => Navigator.pop(context),
), ),
@ -86,7 +86,7 @@ class _CommonRadioButtonDialogState extends State<CommonRadioButtonDialog> {
child: TextButton( child: TextButton(
child: Text( child: Text(
TranslationBase.of(context).ok, 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), onPressed: () => widget.onSelect(_selectedIndex),
), ),

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

@ -299,7 +299,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
}, },
child: Icon( child: Icon(
FontAwesomeIcons.trashAlt.data, 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, //MediaQuery.of(context).size.width / 2.8 : 0,
padding: EdgeInsets.all(4), padding: EdgeInsets.all(4),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffb23838), color: const Color(0xFF14384B),
// borderRadius: BorderRadius.only(topLeft: Radius.circular(6) // 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, width: model.finalProducts[index].rxMessage != null ? MediaQuery.of(context).size.width / 3.70 : 0,
padding: EdgeInsets.all(4), padding: EdgeInsets.all(4),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffb23838), color: const Color(0xFF14384B),
//borderRadius: BorderRadius.only(topLeft: Radius.circular(5)), //borderRadius: BorderRadius.only(topLeft: Radius.circular(5)),
), ),
child: model.finalProducts[index].rxMessage != null 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, width: model.products[index].rxMessage != null ? MediaQuery.of(context).size.width / 5 : 0,
padding: EdgeInsets.all(4), padding: EdgeInsets.all(4),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffb23838), color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)), borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
), ),
child: model.products[index].rxMessage != null 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, width: model.products[index].rxMessage != null ? MediaQuery.of(context).size.width / 5 : 0,
padding: EdgeInsets.all(4), padding: EdgeInsets.all(4),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffb23838), color: const Color(0xFF14384B),
borderRadius: BorderRadius.only(topLeft: Radius.circular(6)), borderRadius: BorderRadius.only(topLeft: Radius.circular(6)),
), ),
child: model.products[index].rxMessage != null child: model.products[index].rxMessage != null

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save