Merge branch 'development' of https://gitlab.com/Cloud_Solution/diplomatic-quarter into fatima-new

merge-update-with-lab-changes
Fatimah Alshammari 4 years ago
commit 2caf4d4837

@ -279,12 +279,13 @@ class MobileNumberTextFiled extends StatelessWidget {
const MobileNumberTextFiled({
Key key,
this.controller,
this.code
this.code, this.onChange
}) : super(key: key);
final TextEditingController controller;
final String code;
final Function onChange;
@override
Widget build(BuildContext context) {
@ -313,6 +314,7 @@ class MobileNumberTextFiled extends StatelessWidget {
margin: EdgeInsets.all(5),
child: TextField(
controller: controller,
onChanged: onChange,
keyboardType: TextInputType.phone,
decoration: InputDecoration(
border: InputBorder.none, hintText: '5xxxxxxxx'),

@ -6,6 +6,8 @@ import 'package:diplomaticquarterapp/models/Authentication/authenticated_user.da
import 'package:diplomaticquarterapp/models/FamilyFiles/GetAllSharedRecordByStatusResponse.dart';
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
import 'package:diplomaticquarterapp/uitl/utils.dart';
import 'package:diplomaticquarterapp/widgets/bottom_options/BottomSheet.dart';
import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart';
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
@ -409,16 +411,17 @@ class _NewEReferralStepThreePageState extends State<NewEReferralStepThreePage> {
15;
this.widget.createEReferralRequestModel.preferredBranchName =
"Arryan Hospital";
// this.widget.createEReferralRequestModel.fullName= "";
this.widget.createEReferralRequestModel.otherRelationship =
"";
// this.widget.createEReferralRequestModel.;
// this.widget.createEReferralRequestModel. preferredBranchName= "Arryan Hospital";
// this.widget.createEReferralRequestModel. preferredBranchName= "Arryan Hospital";
await model
.createEReferral(this.widget.createEReferralRequestModel);
if(model.state == ViewState.ErrorLocal) {
Utils.showErrorToast(model.error);
} else{
AppToast.showSuccessToast(message: "Referral sent successfully");
}
},
loading: model.state == ViewState.BusyLocal,
disabled: medicalReportImages.length == 0,

@ -47,6 +47,7 @@ class _SearchForReferralsPageState extends State<SearchForReferralsPage> {
onModelReady: (model) => model.getAllCities(),
builder: (_, model, widget) => AppScaffold(
isShowAppBar: false,
baseViewModel: model,
body: SingleChildScrollView(
physics: ScrollPhysics(),
child: Container(
@ -86,6 +87,11 @@ class _SearchForReferralsPageState extends State<SearchForReferralsPage> {
? "Enter Patient Identification No"
: "Enter Referral Number",
controller: _searchTextController,
onChanged: (_){
setState(() {
});
},
),
SizedBox(
height: 12,
@ -113,6 +119,12 @@ class _SearchForReferralsPageState extends State<SearchForReferralsPage> {
),
MobileNumberTextFiled(
controller: _mobileTextController,
onChange: (_){
setState(() {
});
},
code: _selectedCountry == null
? "11"
: _selectedCountry["code"],

Loading…
Cancel
Save