color name changed and the item size changed

main
parent 3de009d2dd
commit 1b40b65515

@ -430,7 +430,7 @@ const TIMER_MIN = 10;
class AppGlobal {
static var CONTEX;
static Color appRedColor = Color(0xFF1E8CC8);
static Color appColor = Color(0xFF1E8CC8);
static Color appGreenColor = Color(0xFF1E8CC8);
static Color appTextColor = Color(0xFF2B353E);
static Color scheduleTextColor = Color(0xFF2E303A);

@ -167,7 +167,7 @@ class _LoginScreenState extends State<LoginScreen> {
children: <Widget>[
AppButton(
title: TranslationBase.of(context).login,
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontWeight: FontWeight.w600,
disabled: authenticationViewModel.userInfo.userID == null || authenticationViewModel.userInfo.password == null,
onPressed: () {

@ -343,7 +343,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
children: <Widget>[
AppButton(
title: TranslationBase.of(context).useAnotherAccount ?? '',
color: Color(0xFFD02127),
color: AppGlobal.appColor,
//fontWeight: FontWeight.w700,
onPressed: () {
authenticationViewModel.deleteUser();

@ -172,7 +172,7 @@ class _HomeScreenState extends State<HomeScreen> {
padding: EdgeInsets.all(0),
margin: EdgeInsets.all(2),
decoration: new BoxDecoration(
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
borderRadius: BorderRadius.circular(20),
),
constraints: BoxConstraints(
@ -349,7 +349,7 @@ class _HomeScreenState extends State<HomeScreen> {
List<LinearGradient> backgroundColors = [];
backgroundColors.add(LinearGradient(begin: Alignment(-1.0, -2.0), end: Alignment(1.0, 2.0), colors: [
AppGlobal.appRedColor,
AppGlobal.appColor,
Color(0xFFAD3B3B),
])); //AppGlobal.appRedColor;
backgroundColors.add(LinearGradient(begin: Alignment.center, end: Alignment.center, colors: [

@ -178,7 +178,7 @@ class _MedicineSearchState extends State<MedicineSearchScreen> {
onPressed: () async {
await searchMedicine(context, model);
},
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
),
),
),

@ -188,7 +188,7 @@ class _FilterDatePageState extends State<FilterDatePage> {
child: AppButton(
title: TranslationBase.of(context).reset,
padding: 10,
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
onPressed: () async {
this.widget.patientSearchViewModel.selectedToDate = null;
this.widget.patientSearchViewModel.selectedFromDate = null;

@ -180,7 +180,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
height: 25,
width: 25,
child: CircularProgressIndicator(
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
),
),
),

@ -153,7 +153,7 @@ class _InPatientScreenState extends State<InPatientScreen> with SingleTickerProv
child: TabBar(
isScrollable: false,
controller: _tabController,
indicatorColor: AppGlobal.appRedColor,
indicatorColor: AppGlobal.appColor,
indicatorWeight: 0.001,
indicator: BoxDecoration(),
// indicatorSize: TabBarIndicatorSize.tab,

@ -109,7 +109,7 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
onPressed: () {
onSubmitSearch();
},
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
),
),
),

@ -173,7 +173,7 @@ class _UCAFPagerScreenState extends State<UCAFPagerScreen> with TickerProviderSt
vPadding: 8,
hPadding: 8,
borderColor: Color(0xFFB8382B),
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontColor: Colors.white,
onPressed: () {
model.saveUCAFOnTap!();

@ -62,7 +62,7 @@ class ProceduresWidget extends StatelessWidget {
labelSize: SizeConfig.textMultiplier! * 1.6,
valueColor: procedure.isCovered!
? AppGlobal.appGreenColor
: AppGlobal.appRedColor,
: AppGlobal.appColor,
),
CustomRow(
label: "${TranslationBase.of(context).approvalRequired}: ",
@ -87,7 +87,7 @@ class ProceduresWidget extends StatelessWidget {
labelSize: SizeConfig.textMultiplier! * 1.6,
valueColor: procedure.isCovered!
? AppGlobal.appGreenColor
: AppGlobal.appRedColor,
: AppGlobal.appColor,
),
SizedBox(
height: 16,

@ -454,7 +454,7 @@ class _AdmissionRequestSecondScreenState extends State<AdmissionRequestSecondScr
width: MediaQuery.of(context).size.width * 0.4,
child: AppButton(
title: TranslationBase.of(context).next,
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontColor: Colors.white,
onPressed: () async {
await locator<AnalyticsService>().logEvent(

@ -253,7 +253,7 @@ class _InterventionMedicationHistoryScreenState extends State<InterventionMedica
},
child: Container(
decoration: BoxDecoration(
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
borderRadius:
BorderRadius.circular(10),
),

@ -250,10 +250,10 @@ String noteValidation ="";
disabled: model.state == ViewState.BusyLocal,
title: "${TranslationBase.of(context).createNew}\n${TranslationBase.of(context).episode}",
color: isFromLiveCare || isInpatient
? AppGlobal.appRedColor
? AppGlobal.appColor
: patient.patientStatusType == 43
? AppGlobal.appRedColor
: AppGlobal.appRedColor,
? AppGlobal.appColor
: AppGlobal.appColor,
fontColor: Colors.white,
// vPadding: 8,
height: SizeConfig.heightMultiplier! * (SizeConfig.isHeightVeryShort ? 9 : 6),
@ -285,10 +285,10 @@ String noteValidation ="";
// disabled: model.state == ViewState.BusyLocal || isSigned,
title: "${TranslationBase.of(context).update}\n${TranslationBase.of(context).episode}",
color: ((isInpatient) || isFromLiveCare) && model.state != ViewState.BusyLocal
? AppGlobal.appRedColor
? AppGlobal.appColor
: patient.patientStatusType == 43
? AppGlobal.appRedColor
: AppGlobal.appRedColor,
? AppGlobal.appColor
: AppGlobal.appColor,
fontColor: Colors.white,
// vPadding: 8,
height: SizeConfig.heightMultiplier! * (SizeConfig.isHeightVeryShort ? 9 : 6),

@ -330,7 +330,7 @@ class MyReferralDetailScreen extends StatelessWidget {
Expanded(
child: AppButton(
title: TranslationBase.of(context).reject,
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontColor: Colors.white,
hPadding: 8,
vPadding: 12,

@ -74,7 +74,7 @@ class _PriorityBarState extends State<PriorityBar> {
Container(
width: 120,
height: 4,
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
)
],
),

@ -200,7 +200,7 @@ class _RegisterPatientPageState extends State<RegisterPatientPage>
vPadding: 12,
hPadding: 8,
borderColor: Color(0xFFB8382B),
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontColor: Colors.white,
onPressed: () {
changePageViewIndex(_currentIndex + 1);

@ -342,7 +342,7 @@ class _RegisterSearchPatientPageState extends State<RegisterSearchPatientPage> {
title: TranslationBase.of(context).next,
hasBorder: true,
borderColor: Color(0xFFB8382B),
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontColor: Colors.white,
onPressed: () async {
setState(() {

@ -148,7 +148,7 @@ class _PharmacyInterventionDialogState
.search,
hasBorder: true,
borderColor: Color(0xFFB8382B),
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontColor: Colors.white,
onPressed: () async {
//(dateFrom, dateTo, admissionNumber, patientId, nursingStation)
@ -209,7 +209,7 @@ class _PharmacyInterventionDialogState
data: ThemeData.light().copyWith(
colorScheme: ColorScheme.fromSwatch(
primarySwatch: Colors.red,
accentColor: AppGlobal.appRedColor,
accentColor: AppGlobal.appColor,
),
dialogBackgroundColor: Colors.white,
),
@ -295,7 +295,7 @@ class _PharmacyInterventionDialogState
)
)
),
dropdownButtonProps: DropdownButtonProps(color: AppGlobal.appRedColor,),
dropdownButtonProps: DropdownButtonProps(color: AppGlobal.appColor,),
dropdownDecoratorProps: DropDownDecoratorProps(
textAlignVertical: TextAlignVertical.center,
dropdownSearchDecoration: InputDecoration(

@ -84,7 +84,7 @@ class InterventionHistoryItem extends StatelessWidget {
.reject,
hasBorder: true,
borderColor: Color(0xFFB8382B),
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
fontColor: Colors.white,
onPressed: () async {
if(remarksController.text.isEmpty == true) {

@ -316,7 +316,7 @@ class _PrescriptionCheckOutScreenState extends State<PrescriptionCheckOutScreen>
fontWeight: FontWeight.w600,
),
Radio(
activeColor: AppGlobal.appRedColor,
activeColor: AppGlobal.appColor,
value: 1,
groupValue: selectedType,
onChanged: (value) {

@ -294,7 +294,7 @@ class _EntityListCheckboxSearchWidgetState extends State<EntityListCheckboxSearc
Center(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: AppText("Sorry, No Match", color: AppGlobal.appRedColor),
child: AppText("Sorry, No Match", color: AppGlobal.appColor),
),
)
else if (items.isEmpty && procedureName.text.length > 0 && procedureName.text.length < 3)

@ -123,7 +123,7 @@ class _EntityListCheckboxSearchFavProceduresWidgetState extends State<EntityList
)
: Center(
child: Container(
child: AppText(TranslationBase.of(context).sorryNoMatch, color: AppGlobal.appRedColor),
child: AppText(TranslationBase.of(context).sorryNoMatch, color: AppGlobal.appColor),
),
)
],

@ -77,7 +77,7 @@ class ProcedureCard extends StatelessWidget {
children: [
AppText(
entityList!.orderType == 0 ? 'Routine' : 'Urgent',
color: entityList!.orderType == 0 ? Colors.black : AppGlobal.appRedColor,
color: entityList!.orderType == 0 ? Colors.black : AppGlobal.appColor,
fontWeight: FontWeight.w600,
),
SizedBox(

@ -111,7 +111,7 @@ class _UpdateProcedureWidgetState extends State<UpdateProcedureWidget> {
children: [
AppText(TranslationBase.of(context).orderType),
Radio(
activeColor: AppGlobal.appRedColor,
activeColor: AppGlobal.appColor,
value: 0,
groupValue: widget.selectedType,
onChanged: (value) {
@ -120,7 +120,7 @@ class _UpdateProcedureWidgetState extends State<UpdateProcedureWidget> {
),
Text('routine'),
Radio(
activeColor: AppGlobal.appRedColor,
activeColor: AppGlobal.appColor,
groupValue: widget.selectedType,
value: 1,
onChanged: (value) {

@ -14,7 +14,7 @@ class TabUtils {
double radius = 6.0,
required ProjectViewModel projectViewModel}) {
return BoxDecoration(
color: isActive ? AppGlobal.appRedColor : Color(0xFFEAEAEA),
color: isActive ? AppGlobal.appColor : Color(0xFFEAEAEA),
shape: BoxShape.rectangle,
borderRadius: BorderRadius.only(
topRight: projectViewModel.isArabic
@ -92,7 +92,7 @@ class TabUtils {
width: 15,
height: 15,
decoration: BoxDecoration(
color: isActive ? Colors.white : AppGlobal.appRedColor,
color: isActive ? Colors.white : AppGlobal.appColor,
shape: BoxShape.circle,
),
child: Center(
@ -100,7 +100,7 @@ class TabUtils {
child: AppText(
"$counter",
fontSize: SizeConfig.textMultiplier! * 1.5,
color: !isActive ? Colors.white : AppGlobal.appRedColor,
color: !isActive ? Colors.white : AppGlobal.appColor,
fontWeight: FontWeight.w700,
),
),

@ -30,7 +30,7 @@ class PrescriptionInPatientWidget extends StatelessWidget {
padding: EdgeInsets.all(40),
decoration: BoxDecoration(
border:
Border.all(color: AppGlobal.appRedColor, width: 4),
Border.all(color: AppGlobal.appColor, width: 4),
borderRadius: BorderRadius.all(Radius.circular(100))),
child: IconButton(
icon: Icon(

@ -49,7 +49,7 @@ class _AppDrawerState extends State<AppDrawer> {
Container(
child: Image.asset(
'assets/images/dr_app_logo.png',
width: MediaQuery.of(context).size.width * 0.16,
width: MediaQuery.of(context).size.width * 0.3,
height: MediaQuery.of(context).size.height * 0.16,
),
margin: EdgeInsets.only(top: 10, bottom: 10),

@ -46,7 +46,7 @@ class BottomNavigationItem extends StatelessWidget {
Positioned(
top: 0,
child: Container(
color: AppGlobal.appRedColor,
color: AppGlobal.appColor,
width: 100,
height: 3,
)),

@ -97,7 +97,7 @@ class _ListSelectDialogState extends State<ListSelectDialog> {
title: Text(Utils.convertToTitleCase(item[widget.attributeName].toString())),
groupValue: widget.selectedValue[widget.attributeValueId].toString().toLowerCase(),
value: item[widget.attributeValueId].toString().toLowerCase(),
activeColor: AppGlobal.appRedColor,
activeColor: AppGlobal.appColor,
selected: item[widget.attributeValueId].toString() == widget.selectedValue[widget.attributeValueId].toString(),
onChanged: (val) {
setState(() {

@ -33,7 +33,9 @@ class _GifLoaderContainerState extends State<GifLoaderContainer> with TickerProv
// margin: EdgeInsets.only(bottom: 40),
child: Gif(
controller: controller1,
image: AssetImage("assets/images/progress-loading-red.gif"), //NetworkImage("http://img.mp.itc.cn/upload/20161107/5cad975eee9e4b45ae9d3c1238ccf91e.jpg"),
width: 72,
height: 72,
image: AssetImage("assets/images/progress-loading-red.gif", ), //NetworkImage("http://img.mp.itc.cn/upload/20161107/5cad975eee9e4b45ae9d3c1238ccf91e.jpg"),
),
));
}

Loading…
Cancel
Save