fix first step from Soap

episode_fixes
Elham Rababh 5 years ago
parent 88b04a8f5d
commit 14a0911aec

@ -282,7 +282,7 @@ const Map<String, Map<String, String>> localizedValues = {
'indication': {'en': 'Indication', 'ar': 'دواعي الاستخدام'}, 'indication': {'en': 'Indication', 'ar': 'دواعي الاستخدام'},
'duration': {'en': 'Duration', 'ar': 'المدة الزمنية'}, 'duration': {'en': 'Duration', 'ar': 'المدة الزمنية'},
'instruction': {'en': 'Instructions', 'ar': 'إرشادات'}, 'instruction': {'en': 'Instructions', 'ar': 'إرشادات'},
'addMedication': {'en': 'ADD MEDICATION', 'ar': 'اضف الدواء'}, 'addMedication': {'en': 'Add Medication', 'ar': 'اضف الدواء'},
'route': {'en': 'Route', 'ar': 'المسار'}, 'route': {'en': 'Route', 'ar': 'المسار'},
'reschedule-leave': {'en': 'Reschedule and leaves', 'ar': 'إعادة الجدولة والأوراق'}, 'reschedule-leave': {'en': 'Reschedule and leaves', 'ar': 'إعادة الجدولة والأوراق'},
'no-reschedule-leave': {'en': 'No Reschedule and leaves', 'ar': 'لا إعادة جدولة ويغادر'}, 'no-reschedule-leave': {'en': 'No Reschedule and leaves', 'ar': 'لا إعادة جدولة ويغادر'},

@ -17,15 +17,31 @@ class SizeConfig {
static bool isPortrait = true; static bool isPortrait = true;
static bool isMobilePortrait = false; static bool isMobilePortrait = false;
static bool isMobile = false; static bool isMobile = false;
static bool isHeightShort = false;
static bool isHeightVeryShort = false;
static bool isHeightMiddle = false;
static bool isHeightLarge = false;
static bool isWidthLarge = false;
void init(BoxConstraints constraints, Orientation orientation) { void init(BoxConstraints constraints, Orientation orientation) {
realScreenHeight = constraints.maxHeight; realScreenHeight = constraints.maxHeight;
realScreenWidth = constraints.maxWidth; realScreenWidth = constraints.maxWidth;
if (constraints.maxWidth <= MAX_SMALL_SCREEN) { if (constraints.maxWidth <= MAX_SMALL_SCREEN) {
isMobile = true; isMobile = true;
} }
if (constraints.maxHeight < 600) {
isHeightVeryShort = true;
} else if (constraints.maxHeight < 800) {
isHeightShort = true;
} else if (constraints.maxHeight < 1000) {
isHeightMiddle = true;
} else {
isHeightLarge = true;
}
if (constraints.maxWidth > 600) {
isWidthLarge = true;
}
if (orientation == Orientation.portrait) { if (orientation == Orientation.portrait) {
isPortrait = true; isPortrait = true;
if (realScreenWidth < 450) { if (realScreenWidth < 450) {

@ -254,7 +254,7 @@ class AuthenticationViewModel extends BaseViewModel {
/// add  token to shared preferences in case of send activation code is success /// add  token to shared preferences in case of send activation code is success
setDataAfterSendActivationSuccess(SendActivationCodeForDoctorAppResponseModel sendActivationCodeForDoctorAppResponseModel) { setDataAfterSendActivationSuccess(SendActivationCodeForDoctorAppResponseModel sendActivationCodeForDoctorAppResponseModel) {
print("VerificationCode : " + sendActivationCodeForDoctorAppResponseModel.verificationCode); // print("VerificationCode : " + sendActivationCodeForDoctorAppResponseModel.verificationCode);
// DrAppToastMsg.showSuccesToast("_VerificationCode_ : " + sendActivationCodeForDoctorAppResponseModel.verificationCode); // DrAppToastMsg.showSuccesToast("_VerificationCode_ : " + sendActivationCodeForDoctorAppResponseModel.verificationCode);
sharedPref.setString(VIDA_AUTH_TOKEN_ID, sharedPref.setString(VIDA_AUTH_TOKEN_ID,
sendActivationCodeForDoctorAppResponseModel.vidaAuthTokenID); sendActivationCodeForDoctorAppResponseModel.vidaAuthTokenID);

@ -71,6 +71,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
margin: EdgeInsetsDirectional.fromSTEB(30, 0, 30, 0), margin: EdgeInsetsDirectional.fromSTEB(30, 0, 30, 0),
height: SizeConfig.realScreenHeight * .95, height: SizeConfig.realScreenHeight * .95,
width: SizeConfig.realScreenWidth, width: SizeConfig.realScreenWidth,
child: SingleChildScrollView(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
// mainAxisAlignment: MainAxisAlignment.spaceBetween, // mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -391,6 +392,7 @@ class _VerificationMethodsScreenState extends State<VerificationMethodsScreen> {
), ),
), ),
), ),
),
bottomSheet: authenticationViewModel.user == null ? SizedBox(height: 0,) : Container( bottomSheet: authenticationViewModel.user == null ? SizedBox(height: 0,) : Container(
height: 90, height: 90,
width: double.infinity, width: double.infinity,

@ -1,3 +1,4 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -35,14 +36,14 @@ class SOAPOpenItems extends StatelessWidget {
children: [ children: [
AppText( AppText(
"$label", "$label",
fontSize:15, fontSize:SizeConfig.getTextMultiplierBasedOnWidth()*4.5,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Color(0xFF2E303A), color: Color(0xFF2E303A),
letterSpacing:-0.44 , letterSpacing:-0.44 ,
), ),
AppText( AppText(
"${TranslationBase.of(context).searchHere}", "${TranslationBase.of(context).searchHere}",
fontSize:14, fontSize:SizeConfig.getTextMultiplierBasedOnWidth()*3.5,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
color: Color(0xFF575757), color: Color(0xFF575757),
letterSpacing:-0.56 , letterSpacing:-0.56 ,

@ -1,3 +1,4 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/screens/patients/profile/soap_update/shared_soap_widgets/steper/steps_widget.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update/shared_soap_widgets/steper/steps_widget.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
@ -21,14 +22,14 @@ class SOAPStepHeader extends StatelessWidget {
SizedBox(height: 15,), SizedBox(height: 15,),
AppText( AppText(
TranslationBase.of(context).createNew, TranslationBase.of(context).createNew,
fontSize: 12, fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 4,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
letterSpacing:-0.72, letterSpacing:-0.72,
color: Color(0xFF2E303A), color: Color(0xFF2E303A),
), ),
AppText(TranslationBase.of(context).episode, AppText(TranslationBase.of(context).episode,
fontSize: 24, fontSize:SizeConfig.getTextMultiplierBasedOnWidth() * 8,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
letterSpacing:-1.44, letterSpacing:-1.44,
color: Color(0xFF2E303A), color: Color(0xFF2E303A),
@ -41,7 +42,8 @@ class SOAPStepHeader extends StatelessWidget {
), ),
), ),
SizedBox( SizedBox(
height: 30, height:SizeConfig.heightMultiplier *
(SizeConfig.isHeightVeryShort ? 1 : 2),
), ),
], ],
); );

@ -1,3 +1,4 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart'; import 'package:hexcolor/hexcolor.dart';
@ -19,7 +20,7 @@ class BottomSheetDialogButton extends StatelessWidget {
), ),
border: Border.all(color: HexColor('#EFEFEF'), width: 1), border: Border.all(color: HexColor('#EFEFEF'), width: 1),
), ),
height: MediaQuery.of(context).size.height * 0.1, height: SizeConfig.heightMultiplier * 12,
width: double.infinity, width: double.infinity,
child: Column( child: Column(
children: [ children: [
@ -31,6 +32,8 @@ class BottomSheetDialogButton extends StatelessWidget {
widthFactor: .80, widthFactor: .80,
child: Center( child: Center(
child: AppButton( child: AppButton(
height: SizeConfig.heightMultiplier *
(SizeConfig.isHeightVeryShort ? 8 : 6),
title: label, title: label,
padding: 10, padding: 10,
color: Color(0xFF359846), color: Color(0xFF359846),

@ -1,25 +1,28 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart'; import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class BottomSheetTitle extends StatelessWidget with PreferredSizeWidget { class BottomSheetTitle extends StatelessWidget with PreferredSizeWidget {
const BottomSheetTitle({ BottomSheetTitle({
Key key, this.title, Key key, this.title,
}) : super(key: key); }) : super(key: key);
final String title; final String title;
double headerHeight = SizeConfig.getTextMultiplierBasedOnWidth()*35;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
padding: EdgeInsets.only( // padding: EdgeInsets.only(
left: 0, right: 5, bottom: 5, top: 5), // left: 0, right: 5, bottom: 5, top: 5),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
), ),
height: 115, height: headerHeight,
child: Center(
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: 10, right: 10), left: 10, right: 10),
margin: EdgeInsets.only(top: 60), margin: EdgeInsets.only(top: headerHeight *0.5),
child: Column( child: Column(
children: [ children: [
Row( Row(
@ -39,7 +42,7 @@ class BottomSheetTitle extends StatelessWidget with PreferredSizeWidget {
color: Color(0xFF2B353E), color: Color(0xFF2B353E),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontSize: 22)), fontSize: SizeConfig.getTextMultiplierBasedOnWidth()*6)),
], ],
), ),
), ),
@ -48,13 +51,14 @@ class BottomSheetTitle extends StatelessWidget with PreferredSizeWidget {
Navigator.pop(context); Navigator.pop(context);
}, },
child: Icon(DoctorApp.close_1, child: Icon(DoctorApp.close_1,
size:20, size:SizeConfig.getTextMultiplierBasedOnWidth()*5,
color: Color(0xFF2B353E))) color: Color(0xFF2B353E)))
], ],
), ),
], ],
), ),
), ),
),
); );
} }

@ -1,3 +1,4 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart'; import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart';
import 'package:eva_icons_flutter/eva_icons_flutter.dart'; import 'package:eva_icons_flutter/eva_icons_flutter.dart';
@ -19,7 +20,7 @@ class ExpandableSOAPWidget extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
padding: EdgeInsets.symmetric(vertical: 20, horizontal: 10), padding: EdgeInsets.symmetric(vertical: SizeConfig.isHeightVeryShort ?10:20, horizontal: 10),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all( borderRadius: BorderRadius.all(
@ -41,14 +42,14 @@ class ExpandableSOAPWidget extends StatelessWidget {
children: [ children: [
AppText(headerTitle, AppText(headerTitle,
variant: isExpanded ? "bodyText" : '', variant: isExpanded ? "bodyText" : '',
fontSize: 16, fontSize: SizeConfig.getTextMultiplierBasedOnWidth()*5,
letterSpacing:-0.64, letterSpacing:-0.64,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: Color(0xFF2E303A),), color: Color(0xFF2E303A),),
if(isRequired) if(isRequired)
Icon( Icon(
FontAwesomeIcons.asterisk, FontAwesomeIcons.asterisk,
size: 12, size: SizeConfig.getTextMultiplierBasedOnWidth()*2.5,
) )
], ],
), ),

@ -39,7 +39,7 @@ class StatusLabel extends StatelessWidget {
: TranslationBase.of(context).locked, : TranslationBase.of(context).locked,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
textAlign: TextAlign.center, textAlign: TextAlign.center,
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3, fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.7,
color: stepId == selectedStepId color: stepId == selectedStepId
? Color(0xFFCC9B14) ? Color(0xFFCC9B14)
: stepId < selectedStepId : stepId < selectedStepId

@ -20,6 +20,8 @@ class StepsWidget extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
ProjectViewModel projectViewModel = Provider.of(context); ProjectViewModel projectViewModel = Provider.of(context);
double containerHeight = (SizeConfig.isHeightVeryShort ?30:SizeConfig.isHeightShort?38:38);
double circleTop = (SizeConfig.isHeightVeryShort ?12:SizeConfig.isHeightShort?10:10);
return !projectViewModel.isArabic return !projectViewModel.isArabic
? Stack( ? Stack(
children: [ children: [
@ -45,7 +47,7 @@ class StepsWidget extends StatelessWidget {
), ),
),), ),),
Positioned( Positioned(
top: 10, top: circleTop,
left: 0, left: 0,
child: InkWell( child: InkWell(
onTap: () => changeCurrentTab(0), onTap: () => changeCurrentTab(0),
@ -53,8 +55,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: 38, width:containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 0 border: index == 0
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)
@ -92,7 +94,7 @@ class StepsWidget extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 10, top: circleTop,
left: MediaQuery left: MediaQuery
.of(context) .of(context)
.size .size
@ -103,8 +105,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
width: 38, width: containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 1 border: index == 1
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)
@ -144,7 +146,7 @@ class StepsWidget extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 10, top: circleTop,
left: MediaQuery left: MediaQuery
.of(context) .of(context)
.size .size
@ -157,8 +159,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
width: 38, width:containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 2 border: index == 2
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)
@ -198,7 +200,7 @@ class StepsWidget extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 10, top: circleTop,
right: 0, right: 0,
child: InkWell( child: InkWell(
onTap: () => index >= 3 ? changeCurrentTab(4) : null, onTap: () => index >= 3 ? changeCurrentTab(4) : null,
@ -206,8 +208,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
Container( Container(
width: 38, width:containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 3 border: index == 3
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)
@ -272,7 +274,7 @@ class StepsWidget extends StatelessWidget {
), ),
),), ),),
Positioned( Positioned(
top: 10, top: circleTop,
right: 0, right: 0,
child: InkWell( child: InkWell(
onTap: () => changeCurrentTab(0), onTap: () => changeCurrentTab(0),
@ -280,8 +282,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: 38, width:containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 0 border: index == 0
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)
@ -318,7 +320,7 @@ class StepsWidget extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 10, top: circleTop,
right: MediaQuery right: MediaQuery
.of(context) .of(context)
.size .size
@ -329,8 +331,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
width: 38, width:containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 1 border: index == 1
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)
@ -367,7 +369,7 @@ class StepsWidget extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 10, top: circleTop,
right: MediaQuery right: MediaQuery
.of(context) .of(context)
.size .size
@ -378,8 +380,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
width: 38, width:containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 2 border: index == 2
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)
@ -421,7 +423,7 @@ class StepsWidget extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 10, top: circleTop,
left: 0, left: 0,
child: InkWell( child: InkWell(
onTap: () => index >= 3 ? changeCurrentTab(4) : null, onTap: () => index >= 3 ? changeCurrentTab(4) : null,
@ -429,8 +431,8 @@ class StepsWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
Container( Container(
width: 38, width:containerHeight,
height: 38, height: containerHeight,
decoration: BoxDecoration( decoration: BoxDecoration(
border: index == 3 border: index == 3
? Border.all(color: Color(0xFFCC9B14), width: 2) ? Border.all(color: Color(0xFFCC9B14), width: 2)

@ -1,7 +1,9 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_allergy.dart'; import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_allergy.dart';
import 'package:doctor_app_flutter/util/helpers.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/dialogs/master_key_dailog.dart'; import 'package:doctor_app_flutter/widgets/shared/dialogs/master_key_dailog.dart';
@ -73,7 +75,7 @@ class _AddAllergiesItemState extends State<AddAllergiesItem> {
onTapItem(); onTapItem();
}), }),
InkWell( InkWell(
onTap:onTapItem, onTap: onTapItem,
child: Container( child: Container(
child: AppText( child: AppText(
projectViewModel.isArabic projectViewModel.isArabic
@ -82,8 +84,7 @@ class _AddAllergiesItemState extends State<AddAllergiesItem> {
: widget.item.nameEn : widget.item.nameEn
: widget.item.nameEn, : widget.item.nameEn,
color: Color(0xFF575757), color: Color(0xFF575757),
fontSize: 14, fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3.8,
fontWeight: FontWeight.w600,
letterSpacing: -0.56, letterSpacing: -0.56,
), ),
width: MediaQuery.of(context).size.width * 0.55, width: MediaQuery.of(context).size.width * 0.55,
@ -100,14 +101,14 @@ class _AddAllergiesItemState extends State<AddAllergiesItem> {
}); });
} }
}, },
child: Icon((mySelectedAllergy != null child: Icon(
? mySelectedAllergy.isExpanded (mySelectedAllergy != null ? mySelectedAllergy.isExpanded : false)
: false)
? EvaIcons.arrowIosUpwardOutline ? EvaIcons.arrowIosUpwardOutline
: EvaIcons.arrowIosDownwardOutline, : EvaIcons.arrowIosDownwardOutline,
color: Color(0xFF575757) , color: Color(0xFF575757),
),) size: 20,
),
)
], ],
), ),
bodyWidget: Center( bodyWidget: Center(
@ -143,8 +144,9 @@ class _AddAllergiesItemState extends State<AddAllergiesItem> {
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
hintText: TranslationBase.of(context).selectSeverity + "*", hintText: TranslationBase.of(context).selectSeverity + "*",
enabled: false, enabled: false,
maxLines: 2, maxLines: 1,
minLines: 2, minLines: 1,
height: Helpers.getTextFieldHeight(),
validationError: mySelectedAllergy != null && validationError: mySelectedAllergy != null &&
mySelectedAllergy.selectedAllergySeverity == null && mySelectedAllergy.selectedAllergySeverity == null &&
mySelectedAllergy.hasValidationError mySelectedAllergy.hasValidationError
@ -161,11 +163,10 @@ class _AddAllergiesItemState extends State<AddAllergiesItem> {
maxLines: 25, maxLines: 25,
minLines: 3, minLines: 3,
hasBorder: true, hasBorder: true,
onChanged: (value){ onChanged: (value) {
mySelectedAllergy.remark = value; mySelectedAllergy.remark = value;
}, },
inputType: TextInputType.multiline, inputType: TextInputType.multiline,
), ),
SizedBox( SizedBox(
height: 10, height: 10,
@ -180,7 +181,7 @@ class _AddAllergiesItemState extends State<AddAllergiesItem> {
); );
} }
onTapItem(){ onTapItem() {
setState(() { setState(() {
if (widget.isServiceSelected(widget.item)) { if (widget.isServiceSelected(widget.item)) {
widget.removeAllergy(widget.item); widget.removeAllergy(widget.item);

@ -1,6 +1,7 @@
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_allergy.dart'; import 'package:doctor_app_flutter/models/SOAP/selected_items/my_selected_allergy.dart';
import 'package:doctor_app_flutter/util/helpers.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart'; import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart'; import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart';
@ -58,7 +59,7 @@ class _MasterKeyCheckboxSearchAllergiesWidgetState
children: [ children: [
Expanded( Expanded(
child: Container( child: Container(
height: MediaQuery.of(context).size.height * 0.70, height: Helpers.getTextFieldHeight(),
child: Center( child: Center(
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(

@ -1,4 +1,5 @@
import 'package:doctor_app_flutter/config/config.dart'; import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart'; import 'package:hexcolor/hexcolor.dart';
@ -67,8 +68,7 @@ class _PriorityBarState extends State<PriorityBar> {
: item, : item,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: SizeConfig.getTextMultiplierBasedOnWidth()*3.5,
color: Colors.black, color: Colors.black,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),

@ -1,5 +1,6 @@
// ignore: must_be_immutable // ignore: must_be_immutable
import 'package:autocomplete_textfield/autocomplete_textfield.dart'; import 'package:autocomplete_textfield/autocomplete_textfield.dart';
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/enum/master_lookup_key.dart'; import 'package:doctor_app_flutter/core/enum/master_lookup_key.dart';
import 'package:doctor_app_flutter/core/enum/viewstate.dart'; import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/core/model/search_drug/get_medication_response_model.dart'; import 'package:doctor_app_flutter/core/model/search_drug/get_medication_response_model.dart';
@ -8,6 +9,7 @@ import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/screens/base/base_view.dart'; import 'package:doctor_app_flutter/screens/base/base_view.dart';
import 'package:doctor_app_flutter/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_dialog_button.dart'; import 'package:doctor_app_flutter/screens/patients/profile/soap_update/shared_soap_widgets/bottom_sheet_dialog_button.dart';
import 'package:doctor_app_flutter/util/helpers.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart'; import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
@ -53,7 +55,6 @@ class _AddMedicationState extends State<AddMedication> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
ProjectViewModel projectViewModel = Provider.of(context); ProjectViewModel projectViewModel = Provider.of(context);
final screenSize = MediaQuery.of(context).size;
return FractionallySizedBox( return FractionallySizedBox(
child: BaseView<SOAPViewModel>( child: BaseView<SOAPViewModel>(
onModelReady: (model) async { onModelReady: (model) async {
@ -88,20 +89,14 @@ class _AddMedicationState extends State<AddMedication> {
SizedBox( SizedBox(
height: 10, height: 10,
), ),
SizedBox(
height: 16,
),
Expanded( Expanded(
child: Center(
child: FractionallySizedBox( child: FractionallySizedBox(
widthFactor: 0.9, widthFactor: 0.9,
child: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
SizedBox( SizedBox(
height: 16, height: SizeConfig.heightMultiplier * (SizeConfig.isHeightVeryShort ?2:SizeConfig.isHeightShort?2:2),
),
SizedBox(
height: 16,
), ),
Container( Container(
// height: screenSize.height * 0.070, // height: screenSize.height * 0.070,
@ -126,9 +121,11 @@ class _AddMedicationState extends State<AddMedication> {
.searchMedicineNameHere, .searchMedicineNameHere,
null, null,
true, true,
suffixIcon: Icons.search), suffixIcon:
itemSubmitted: (item) => setState( Icons.search),
() => _selectedMedication = itemSubmitted: (item) =>
setState(() =>
_selectedMedication =
item), item),
key: key, key: key,
suggestions: suggestions:
@ -142,31 +139,34 @@ class _AddMedicationState extends State<AddMedication> {
suggestion suggestion
.genericName), .genericName),
padding: padding:
EdgeInsets.all(8.0)), EdgeInsets.all(
8.0)),
itemSorter: (a, b) => 1, itemSorter: (a, b) => 1,
itemFilter: (suggestion, input) => itemFilter: (suggestion,
suggestion.genericName.toLowerCase().startsWith( input) =>
input.toLowerCase()) || suggestion.genericName.toLowerCase().startsWith(input.toLowerCase()) ||
suggestion.description suggestion.description
.toLowerCase() .toLowerCase()
.startsWith(input .startsWith(input
.toLowerCase()) || .toLowerCase()) ||
suggestion.keywords suggestion.keywords
.toLowerCase() .toLowerCase()
.startsWith( .startsWith(input
input.toLowerCase()), .toLowerCase()),
), ),
) )
: AppTextFieldCustom( : AppTextFieldCustom(
height: Helpers.getTextFieldHeight(),
hintText: _selectedMedication != hintText: _selectedMedication !=
null null
? _selectedMedication ? _selectedMedication
.description + .description +
(' (${_selectedMedication.genericName} )') (' (${_selectedMedication.genericName} )')
: TranslationBase.of(context) : TranslationBase.of(
context)
.searchMedicineNameHere, .searchMedicineNameHere,
minLines: 2, minLines: 1,
maxLines: 2, maxLines: 1,
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
suffixIcon: IconButton( suffixIcon: IconButton(
icon: Icon( icon: Icon(
@ -181,15 +181,20 @@ class _AddMedicationState extends State<AddMedication> {
height: 5, height: 5,
), ),
AppTextFieldCustom( AppTextFieldCustom(
height: Helpers.getTextFieldHeight(),
enabled: false, enabled: false,
onClick: model.medicationDoseTimeList != null onClick: model.medicationDoseTimeList !=
null
? () { ? () {
MasterKeyDailog dialog = MasterKeyDailog dialog =
MasterKeyDailog( MasterKeyDailog(
list: model.medicationDoseTimeList, list: model
.medicationDoseTimeList,
okText: okText:
TranslationBase.of(context).ok, TranslationBase.of(context)
selectedValue: _selectedMedicationDose, .ok,
selectedValue:
_selectedMedicationDose,
okFunction: (selectedValue) { okFunction: (selectedValue) {
setState(() { setState(() {
_selectedMedicationDose = _selectedMedicationDose =
@ -208,7 +213,8 @@ class _AddMedicationState extends State<AddMedication> {
showDialog( showDialog(
barrierDismissible: false, barrierDismissible: false,
context: context, context: context,
builder: (BuildContext context) { builder:
(BuildContext context) {
return dialog; return dialog;
}, },
); );
@ -216,29 +222,35 @@ class _AddMedicationState extends State<AddMedication> {
: null, : null,
hintText: hintText:
TranslationBase.of(context).doseTime, TranslationBase.of(context).doseTime,
maxLines: 2, maxLines: 1,
minLines: 2, minLines: 1,
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
controller: doseController, controller: doseController,
validationError: isFormSubmitted && validationError: isFormSubmitted &&
_selectedMedicationDose == null _selectedMedicationDose == null
? TranslationBase.of(context).emptyMessage ? TranslationBase.of(context)
.emptyMessage
: null, : null,
), ),
SizedBox( SizedBox(
height: 5, height: 5,
), ),
AppTextFieldCustom( AppTextFieldCustom(
height: Helpers.getTextFieldHeight(),
enabled: false, enabled: false,
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
onClick: model.medicationStrengthList != null onClick: model.medicationStrengthList !=
null
? () { ? () {
MasterKeyDailog dialog = MasterKeyDailog dialog =
MasterKeyDailog( MasterKeyDailog(
list: model.medicationStrengthList, list: model
.medicationStrengthList,
okText: okText:
TranslationBase.of(context).ok, TranslationBase.of(context)
selectedValue: _selectedMedicationStrength, .ok,
selectedValue:
_selectedMedicationStrength,
okFunction: (selectedValue) { okFunction: (selectedValue) {
setState(() { setState(() {
_selectedMedicationStrength = _selectedMedicationStrength =
@ -257,7 +269,8 @@ class _AddMedicationState extends State<AddMedication> {
showDialog( showDialog(
barrierDismissible: false, barrierDismissible: false,
context: context, context: context,
builder: (BuildContext context) { builder:
(BuildContext context) {
return dialog; return dialog;
}, },
); );
@ -265,12 +278,14 @@ class _AddMedicationState extends State<AddMedication> {
: null, : null,
hintText: hintText:
TranslationBase.of(context).strength, TranslationBase.of(context).strength,
maxLines: 2, maxLines: 1,
minLines: 2, minLines: 1,
controller: strengthController, controller: strengthController,
validationError: isFormSubmitted && validationError: isFormSubmitted &&
_selectedMedicationStrength == null _selectedMedicationStrength ==
? TranslationBase.of(context).emptyMessage null
? TranslationBase.of(context)
.emptyMessage
: null, : null,
), ),
SizedBox( SizedBox(
@ -280,6 +295,7 @@ class _AddMedicationState extends State<AddMedication> {
height: 5, height: 5,
), ),
AppTextFieldCustom( AppTextFieldCustom(
height: Helpers.getTextFieldHeight(),
enabled: false, enabled: false,
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
onClick: model.medicationRouteList != null onClick: model.medicationRouteList != null
@ -287,9 +303,11 @@ class _AddMedicationState extends State<AddMedication> {
MasterKeyDailog dialog = MasterKeyDailog dialog =
MasterKeyDailog( MasterKeyDailog(
list: model.medicationRouteList, list: model.medicationRouteList,
selectedValue: _selectedMedicationRoute, selectedValue:
_selectedMedicationRoute,
okText: okText:
TranslationBase.of(context).ok, TranslationBase.of(context)
.ok,
okFunction: (selectedValue) { okFunction: (selectedValue) {
setState(() { setState(() {
_selectedMedicationRoute = _selectedMedicationRoute =
@ -308,19 +326,22 @@ class _AddMedicationState extends State<AddMedication> {
showDialog( showDialog(
barrierDismissible: false, barrierDismissible: false,
context: context, context: context,
builder: (BuildContext context) { builder:
(BuildContext context) {
return dialog; return dialog;
}, },
); );
} }
: null, : null,
hintText: TranslationBase.of(context).route, hintText:
maxLines: 2, TranslationBase.of(context).route,
minLines: 2, maxLines: 1,
minLines: 1,
controller: routeController, controller: routeController,
validationError: isFormSubmitted && validationError: isFormSubmitted &&
_selectedMedicationRoute == null _selectedMedicationRoute == null
? TranslationBase.of(context).emptyMessage ? TranslationBase.of(context)
.emptyMessage
: null, : null,
), ),
SizedBox( SizedBox(
@ -330,14 +351,19 @@ class _AddMedicationState extends State<AddMedication> {
height: 5, height: 5,
), ),
AppTextFieldCustom( AppTextFieldCustom(
onClick: model.medicationFrequencyList != null height: Helpers.getTextFieldHeight(),
onClick: model.medicationFrequencyList !=
null
? () { ? () {
MasterKeyDailog dialog = MasterKeyDailog dialog =
MasterKeyDailog( MasterKeyDailog(
list: model.medicationFrequencyList, list: model
.medicationFrequencyList,
okText: okText:
TranslationBase.of(context).ok, TranslationBase.of(context)
selectedValue: _selectedMedicationFrequency, .ok,
selectedValue:
_selectedMedicationFrequency,
okFunction: (selectedValue) { okFunction: (selectedValue) {
setState(() { setState(() {
_selectedMedicationFrequency = _selectedMedicationFrequency =
@ -356,7 +382,8 @@ class _AddMedicationState extends State<AddMedication> {
showDialog( showDialog(
barrierDismissible: false, barrierDismissible: false,
context: context, context: context,
builder: (BuildContext context) { builder:
(BuildContext context) {
return dialog; return dialog;
}, },
); );
@ -365,33 +392,35 @@ class _AddMedicationState extends State<AddMedication> {
hintText: hintText:
TranslationBase.of(context).frequency, TranslationBase.of(context).frequency,
enabled: false, enabled: false,
maxLines: 2, maxLines: 1,
minLines: 2, minLines: 1,
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
controller: frequencyController, controller: frequencyController,
validationError: isFormSubmitted && validationError: isFormSubmitted &&
_selectedMedicationFrequency == null _selectedMedicationFrequency ==
? TranslationBase.of(context).emptyMessage null
? TranslationBase.of(context)
.emptyMessage
: null, : null,
), ),
SizedBox( SizedBox(
height: 5, height: SizeConfig.heightMultiplier * (SizeConfig.isHeightVeryShort ?20:SizeConfig.isHeightShort?15:10),
),
SizedBox(
height: 30,
), ),
], ],
)),
), ),
)),
), ),
]), ]),
), ),
), ),
bottomSheet:model.state == ViewState.Busy?Container(height: 0,): bottomSheet: model.state == ViewState.Busy
BottomSheetDialogButton( ? Container(
label: TranslationBase.of(context) height: 0,
.addMedication )
.toUpperCase(), : BottomSheetDialogButton(
label:
TranslationBase.of(context).addMedication,
onTap: () { onTap: () {
setState(() { setState(() {
isFormSubmitted = true; isFormSubmitted = true;
@ -407,8 +436,7 @@ class _AddMedicationState extends State<AddMedication> {
Navigator.of(context).pop(); Navigator.of(context).pop();
} }
}, },
) )),
),
), ),
); );
} }

@ -1,4 +1,5 @@
import 'package:doctor_app_flutter/config/shared_pref_kay.dart'; import 'package:doctor_app_flutter/config/shared_pref_kay.dart';
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/enum/master_lookup_key.dart'; import 'package:doctor_app_flutter/core/enum/master_lookup_key.dart';
import 'package:doctor_app_flutter/core/enum/viewstate.dart'; import 'package:doctor_app_flutter/core/enum/viewstate.dart';
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
@ -268,7 +269,8 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
isExpanded: isChiefExpand, isExpanded: isChiefExpand,
), ),
SizedBox( SizedBox(
height: 30, height: SizeConfig.heightMultiplier *
(SizeConfig.isHeightVeryShort ? 4 : 2),
), ),
ExpandableSOAPWidget( ExpandableSOAPWidget(
headerTitle: TranslationBase.of(context).histories, headerTitle: TranslationBase.of(context).histories,
@ -286,7 +288,8 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
isExpanded: isHistoryExpand, isExpanded: isHistoryExpand,
), ),
SizedBox( SizedBox(
height: 30, height: SizeConfig.heightMultiplier *
(SizeConfig.isHeightVeryShort ? 4 : 2),
), ),
ExpandableSOAPWidget( ExpandableSOAPWidget(
headerTitle: TranslationBase.of(context).allergiesSoap, headerTitle: TranslationBase.of(context).allergiesSoap,
@ -309,7 +312,8 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
isExpanded: isAllergiesExpand, isExpanded: isAllergiesExpand,
), ),
SizedBox( SizedBox(
height: MediaQuery.of(context).size.height * 0.16, height: SizeConfig.heightMultiplier *
(SizeConfig.isHeightVeryShort ? 20 : 10),
), ),
], ],
), ),
@ -324,7 +328,8 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
), ),
border: Border.all(color: HexColor('#707070'), width: 0), border: Border.all(color: HexColor('#707070'), width: 0),
), ),
height: 80, height: SizeConfig.heightMultiplier *
(SizeConfig.isHeightVeryShort ? 12 : 10),
width: double.infinity, width: double.infinity,
child: Column( child: Column(
children: [ children: [
@ -338,7 +343,10 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
child: AppButton( child: AppButton(
title: TranslationBase.of(context).next, title: TranslationBase.of(context).next,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
height: SizeConfig.heightMultiplier *
(SizeConfig.isHeightVeryShort ? 8 : 6),
color: Colors.red[700], color: Colors.red[700],
padding: 10,
// loading: model.state == ViewState.BusyLocal, // loading: model.state == ViewState.BusyLocal,
onPressed: () async { onPressed: () async {
addSubjectiveInfo( addSubjectiveInfo(

@ -277,4 +277,7 @@ class Helpers {
String twoDigitSeconds = twoDigits(duration.inSeconds.remainder(60)); String twoDigitSeconds = twoDigits(duration.inSeconds.remainder(60));
return "$twoDigitMinutes:$twoDigitSeconds"; return "$twoDigitMinutes:$twoDigitSeconds";
} }
static double getTextFieldHeight(){
return SizeConfig.heightMultiplier * (SizeConfig.isHeightVeryShort ?10:SizeConfig.isHeightShort?8:6);
}
} }

@ -22,6 +22,7 @@ class AppButton extends StatefulWidget {
final double radius; final double radius;
final double vPadding; final double vPadding;
final double hPadding; final double hPadding;
final double height;
AppButton({ AppButton({
@required this.onPressed, @required this.onPressed,
@ -40,6 +41,7 @@ class AppButton extends StatefulWidget {
this.radius = 8.0, this.radius = 8.0,
this.hasBorder = false, this.hasBorder = false,
this.borderColor, this.borderColor,
this.height,
}); });
_AppButtonState createState() => _AppButtonState(); _AppButtonState createState() => _AppButtonState();
@ -50,6 +52,7 @@ class _AppButtonState extends State<AppButton> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
// height: MediaQuery.of(context).size.height * 0.075, // height: MediaQuery.of(context).size.height * 0.075,
height: widget.height,
child: IgnorePointer( child: IgnorePointer(
ignoring: widget.loading ||widget.disabled, ignoring: widget.loading ||widget.disabled,
child: RawMaterialButton( child: RawMaterialButton(

@ -1,6 +1,8 @@
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart'; import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart';
import 'package:doctor_app_flutter/util/helpers.dart';
import 'package:doctor_app_flutter/util/translations_delegate_base.dart'; import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart'; import 'package:doctor_app_flutter/widgets/shared/divider_with_spaces_around.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
@ -75,7 +77,7 @@ class _MasterKeyCheckboxSearchWidgetState
child: ListView( child: ListView(
children: [ children: [
AppTextFieldCustom( AppTextFieldCustom(
height: MediaQuery.of(context).size.height * 0.070, height: Helpers.getTextFieldHeight(),//MediaQuery.of(context).size.height * 0.070,
hintText: TranslationBase.of(context).searchHistory, hintText: TranslationBase.of(context).searchHistory,
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
hasBorder: false, hasBorder: false,
@ -133,8 +135,7 @@ class _MasterKeyCheckboxSearchWidgetState
: historyInfo.nameEn, : historyInfo.nameEn,
color: Color(0xFF575757), color: Color(0xFF575757),
fontSize: 14, fontSize: SizeConfig.getTextMultiplierBasedOnWidth()*3.8,
fontWeight: FontWeight.w600,
letterSpacing: -0.56, letterSpacing: -0.56,
), ),
), ),

@ -158,7 +158,7 @@ class _AppTextFieldCustomState extends State<AppTextFieldCustom> {
? widget.inputFormatters ? widget.inputFormatters
: [], : [],
onChanged: (value) { onChanged: (value) {
// setState(() {}); setState(() {});
if (widget.onChanged != null) { if (widget.onChanged != null) {
widget.onChanged(value); widget.onChanged(value);
} }

Loading…
Cancel
Save