Merge branch 'design_issues' into 'development'

hot fixing

See merge request Cloud_Solution/diplomatic-quarter!239
merge-requests/240/merge
Mohammad Aljammal 4 years ago
commit 013e3b0f1c

@ -40,7 +40,7 @@ class AppointmentRateViewModel extends BaseViewModel {
Future sendAppointmentRate(int rate, int appointmentNo, int projectID, Future sendAppointmentRate(int rate, int appointmentNo, int projectID,
int doctorID, int clinicID, String note) async { int doctorID, int clinicID, String note) async {
setState(ViewState.BusyLocal); setState(ViewState.Busy);
await _appointmentRateService.sendAppointmentRate( await _appointmentRateService.sendAppointmentRate(
rate, appointmentNo, projectID, doctorID, clinicID, note); rate, appointmentNo, projectID, doctorID, clinicID, note);
if (_appointmentRateService.hasError) { if (_appointmentRateService.hasError) {

@ -100,14 +100,14 @@ class MyApp extends StatelessWidget {
backgroundColor: Color.fromRGBO(255, 255, 255, 1), backgroundColor: Color.fromRGBO(255, 255, 255, 1),
highlightColor: Colors.grey[100].withOpacity(0.4), highlightColor: Colors.grey[100].withOpacity(0.4),
splashColor: Colors.transparent, splashColor: Colors.transparent,
primaryColor: Colors.grey, primaryColor: Color(0xff515A5D),
toggleableActiveColor: secondaryColor, toggleableActiveColor: secondaryColor,
indicatorColor: secondaryColor, indicatorColor: secondaryColor,
bottomSheetTheme: BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')), bottomSheetTheme: BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
cursorColor: Colors.grey, cursorColor: Colors.grey,
iconTheme: IconThemeData(), iconTheme: IconThemeData(),
appBarTheme: AppBarTheme( appBarTheme: AppBarTheme(
color: Colors.grey[700], color: Color(0xff515A5D),
brightness: Brightness.light, brightness: Brightness.light,
elevation: 0.0, elevation: 0.0,
actionsIconTheme: IconThemeData( actionsIconTheme: IconThemeData(

@ -171,7 +171,7 @@ class _HomePageState extends State<HomePage> {
], ],
), ),
), ),
Container(width: double.infinity, height: 80) Container(width: double.infinity, height:projectViewModel.isArabic ?110: 80)
], ],
), ),
Positioned( Positioned(
@ -260,7 +260,7 @@ class _HomePageState extends State<HomePage> {
) )
: Container( : Container(
width: double.infinity, width: double.infinity,
height: 130, height: projectViewModel.isArabic ? 160:130,
decoration: BoxDecoration( decoration: BoxDecoration(
color: HexColor('#A59E9E'), color: HexColor('#A59E9E'),
shape: BoxShape.rectangle, shape: BoxShape.rectangle,

@ -238,15 +238,13 @@ class _AdvancePaymentPageState extends State<AdvancePaymentPage> {
), ),
), ),
bottomSheet: Container( bottomSheet: Container(
height: MediaQuery.of(context).size.height * 0.13, height: MediaQuery.of(context).size.height * 0.10,
width: double.infinity, width: double.infinity,
padding: EdgeInsets.all(12), padding: EdgeInsets.all(18),
child: SecondaryButton( child: SecondaryButton(
textColor: Colors.white, textColor: Colors.white,
label: TranslationBase.of(context).submit, label: TranslationBase.of(context).submit,
disabled: amount.isEmpty || disabled: amount.isEmpty || _fileTextController.text.isEmpty || _selectedHospital == null,
_fileTextController.text.isEmpty ||
_selectedHospital == null,
onTap: () { onTap: () {
var mobileNum; var mobileNum;
var patientName; var patientName;

@ -74,7 +74,7 @@ class PaymentService extends StatelessWidget {
), ),
), ),
), ),
if(!projectViewModel.havePrivilege(33)) //if(!projectViewModel.havePrivilege(33))
Expanded( Expanded(
child: InkWell( child: InkWell(
onTap: () => navigateToToDoPage(context), onTap: () => navigateToToDoPage(context),
@ -117,7 +117,7 @@ class PaymentService extends StatelessWidget {
) )
], ],
), ),
if(!projectViewModel.havePrivilege(33)) // if(!projectViewModel.havePrivilege(33))
Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -136,12 +136,12 @@ class PaymentService extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Texts( Texts(
'My Balances', TranslationBase.of(context).hmg,
color: HexColor('#B61422'), color: HexColor('#B61422'),
bold: true, bold: true,
), ),
Texts( Texts(
TranslationBase.of(context).payment, TranslationBase.of(context).wallet,
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
), ),

@ -208,8 +208,8 @@ class _RateAppointmentClinicState extends State<RateAppointmentClinic> {
} }
}, },
label: TranslationBase.of(context).submit, label: TranslationBase.of(context).submit,
disabled: model.state == ViewState.BusyLocal, disabled: (model.state == ViewState.Busy || rating==0),
loading: model.state == ViewState.BusyLocal, // loading: model.state == ViewState.BusyLocal,
textColor: Theme.of(context).backgroundColor), textColor: Theme.of(context).backgroundColor),
), ),
SizedBox( SizedBox(

@ -206,7 +206,7 @@ class _RateAppointmentDoctorState extends State<RateAppointmentDoctor> {
} }
}, },
label: TranslationBase.of(context).next, label: TranslationBase.of(context).next,
disabled: model.state == ViewState.BusyLocal|| rating==0, disabled: (model.state == ViewState.BusyLocal || rating==0),
loading: model.state == ViewState.BusyLocal, loading: model.state == ViewState.BusyLocal,
textColor: Theme.of(context).backgroundColor), textColor: Theme.of(context).backgroundColor),
), ),

@ -84,6 +84,7 @@ class AppScaffold extends StatelessWidget {
isShowDecPage: isShowDecPage, isShowDecPage: isShowDecPage,
image: image, image: image,
):null, ):null,
bottomSheet: bottomSheet,
body: (!Provider.of<ProjectViewModel>(context, listen: false).isLogin && body: (!Provider.of<ProjectViewModel>(context, listen: false).isLogin &&
isShowDecPage) isShowDecPage)
? NotAutPage( ? NotAutPage(

Loading…
Cancel
Save