Merge branch 'development' of https://gitlab.com/Cloud_Solution/diplomatic-quarter into sultan-patientapp
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 8.6 KiB |
@ -0,0 +1,68 @@
|
||||
class ClinicCategory {
|
||||
int clinicID;
|
||||
int categoryID;
|
||||
String categoryName;
|
||||
String categoryNameN;
|
||||
String icon;
|
||||
String bodyImageEN;
|
||||
String fullImageEN;
|
||||
String bodyImageAR;
|
||||
String fullmageAR;
|
||||
bool isActive;
|
||||
bool isCategoryGroup;
|
||||
Null sortOrderAR;
|
||||
Null sortOrderEN;
|
||||
String clinicName;
|
||||
|
||||
ClinicCategory(
|
||||
{this.clinicID,
|
||||
this.categoryID,
|
||||
this.categoryName,
|
||||
this.categoryNameN,
|
||||
this.icon,
|
||||
this.bodyImageEN,
|
||||
this.fullImageEN,
|
||||
this.bodyImageAR,
|
||||
this.fullmageAR,
|
||||
this.isActive,
|
||||
this.isCategoryGroup,
|
||||
this.sortOrderAR,
|
||||
this.sortOrderEN,
|
||||
this.clinicName});
|
||||
|
||||
ClinicCategory.fromJson(Map<String, dynamic> json) {
|
||||
clinicID = json['ClinicID'];
|
||||
categoryID = json['CategoryID'];
|
||||
categoryName = json['CategoryName'];
|
||||
categoryNameN = json['CategoryNameN'];
|
||||
icon = json['Icon'];
|
||||
bodyImageEN = json['BodyImageEN'];
|
||||
fullImageEN = json['FullImageEN'];
|
||||
bodyImageAR = json['BodyImageAR'];
|
||||
fullmageAR = json['FullmageAR'];
|
||||
isActive = json['IsActive'];
|
||||
isCategoryGroup = json['IsCategoryGroup'];
|
||||
sortOrderAR = json['SortOrderAR'];
|
||||
sortOrderEN = json['SortOrderEN'];
|
||||
clinicName = json['ClinicName'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['ClinicID'] = this.clinicID;
|
||||
data['CategoryID'] = this.categoryID;
|
||||
data['CategoryName'] = this.categoryName;
|
||||
data['CategoryNameN'] = this.categoryNameN;
|
||||
data['Icon'] = this.icon;
|
||||
data['BodyImageEN'] = this.bodyImageEN;
|
||||
data['FullImageEN'] = this.fullImageEN;
|
||||
data['BodyImageAR'] = this.bodyImageAR;
|
||||
data['FullmageAR'] = this.fullmageAR;
|
||||
data['IsActive'] = this.isActive;
|
||||
data['IsCategoryGroup'] = this.isCategoryGroup;
|
||||
data['SortOrderAR'] = this.sortOrderAR;
|
||||
data['SortOrderEN'] = this.sortOrderEN;
|
||||
data['ClinicName'] = this.clinicName;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
class DiseasesByClinic {
|
||||
int diseasesID;
|
||||
String diseasesEN;
|
||||
String diseasesAR;
|
||||
int diseasesCategoryID;
|
||||
Null diseasesCategoryEN;
|
||||
Null diseasesCategoryAR;
|
||||
String diseases;
|
||||
Null diseasesCategory;
|
||||
|
||||
DiseasesByClinic(
|
||||
{this.diseasesID,
|
||||
this.diseasesEN,
|
||||
this.diseasesAR,
|
||||
this.diseasesCategoryID,
|
||||
this.diseasesCategoryEN,
|
||||
this.diseasesCategoryAR,
|
||||
this.diseases,
|
||||
this.diseasesCategory});
|
||||
|
||||
DiseasesByClinic.fromJson(Map<String, dynamic> json) {
|
||||
diseasesID = json['DiseasesID'];
|
||||
diseasesEN = json['Diseases_EN'];
|
||||
diseasesAR = json['Diseases_AR'];
|
||||
diseasesCategoryID = json['Diseases_CategoryID'];
|
||||
diseasesCategoryEN = json['Diseases_CategoryEN'];
|
||||
diseasesCategoryAR = json['Diseases_CategoryAR'];
|
||||
diseases = json['Diseases'];
|
||||
diseasesCategory = json['Diseases_Category'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['DiseasesID'] = this.diseasesID;
|
||||
data['Diseases_EN'] = this.diseasesEN;
|
||||
data['Diseases_AR'] = this.diseasesAR;
|
||||
data['Diseases_CategoryID'] = this.diseasesCategoryID;
|
||||
data['Diseases_CategoryEN'] = this.diseasesCategoryEN;
|
||||
data['Diseases_CategoryAR'] = this.diseasesCategoryAR;
|
||||
data['Diseases'] = this.diseases;
|
||||
data['Diseases_Category'] = this.diseasesCategory;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
import 'package:diplomaticquarterapp/config/config.dart';
|
||||
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
|
||||
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HealthCalculator/ClinicCategory.dart';
|
||||
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HealthCalculator/DiseasesByClinic.dart';
|
||||
import 'package:diplomaticquarterapp/core/service/base_service.dart';
|
||||
|
||||
class BariatricsService extends BaseService {
|
||||
List<ClinicCategory> clinicCategoryList = [];
|
||||
List<DiseasesByClinic> diseasesList = [];
|
||||
|
||||
Future getClinicCategory() async {
|
||||
hasError = false;
|
||||
Map<String, dynamic> body = Map();
|
||||
var languageID =
|
||||
await sharedPref.getStringWithDefaultValue(APP_LANGUAGE, 'ar');
|
||||
|
||||
body['ClinicID'] = 108; // hint: it is static depend on IONIC project
|
||||
body['isDentalAllowedBackend'] = false;
|
||||
body['LanguageID'] = languageID == 'ar' ? 1 : 2;
|
||||
|
||||
await baseAppClient.post(GET_CLINIC_CATEGORY,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
clinicCategoryList.clear();
|
||||
if (response['ClinicCategoryList'] != null)
|
||||
response['ClinicCategoryList'].forEach((city) {
|
||||
clinicCategoryList.add(ClinicCategory.fromJson(city));
|
||||
});
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: body);
|
||||
}
|
||||
|
||||
Future getDiseaseByClinicId() async {
|
||||
hasError = false;
|
||||
Map<String, dynamic> body = Map();
|
||||
body['ClinicID'] = 108; // hint: it is static depend on IONIC project
|
||||
|
||||
await baseAppClient.post(GET_DISEASE_BY_CLINIC_ID,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
diseasesList.clear();
|
||||
if (response['DiseasesByClinicList'] != null)
|
||||
response['DiseasesByClinicList'].forEach((city) {
|
||||
diseasesList.add(DiseasesByClinic.fromJson(city));
|
||||
});
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: body);
|
||||
}
|
||||
|
||||
Future searchDoctorsByTime(DiseasesByClinic disease) async {
|
||||
hasError = false;
|
||||
var languageID =
|
||||
await sharedPref.getStringWithDefaultValue(APP_LANGUAGE, 'ar');
|
||||
|
||||
Map<String, dynamic> body = Map();
|
||||
body['ClinicID'] = 108; // hint: it is static depend on IONIC project
|
||||
body['ContinueDentalPlan'] = false;
|
||||
body['DiseaseID'] = disease.diseasesID;
|
||||
body['IsGetNearAppointment'] = false;
|
||||
body['IsSearchAppointmnetByClinicID'] = true;
|
||||
body['LanguageID'] = languageID == 'ar' ? 1 : 2;
|
||||
body['Latitude'] = 0;
|
||||
body['License'] = true;
|
||||
body['Longitude'] = 0;
|
||||
body['isDentalAllowedBackend'] = false;
|
||||
|
||||
await baseAppClient.post(SEARCH_DOCTOR_BY_TIME,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: body);
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
||||
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HealthCalculator/ClinicCategory.dart';
|
||||
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HealthCalculator/DiseasesByClinic.dart';
|
||||
import 'package:diplomaticquarterapp/core/service/AlHabibMedicalService/health-calculator/bariatrics-service.dart';
|
||||
import 'package:diplomaticquarterapp/core/viewModels/base_view_model.dart';
|
||||
|
||||
import '../../../../locator.dart';
|
||||
|
||||
class BariatricsViewModel extends BaseViewModel {
|
||||
BariatricsService _service = locator<BariatricsService>();
|
||||
|
||||
List<ClinicCategory> get clinicCategoryList => _service.clinicCategoryList;
|
||||
|
||||
List<DiseasesByClinic> get diseasesList => _service.diseasesList;
|
||||
|
||||
void getClinicCategory() async {
|
||||
setState(ViewState.Busy);
|
||||
await _service.getClinicCategory();
|
||||
if (_service.hasError) {
|
||||
error = _service.error;
|
||||
setState(ViewState.Error);
|
||||
} else {
|
||||
getDiseaseByClinicId();
|
||||
}
|
||||
}
|
||||
|
||||
void getDiseaseByClinicId() async {
|
||||
setState(ViewState.Busy);
|
||||
await _service.getDiseaseByClinicId();
|
||||
if (_service.hasError) {
|
||||
error = _service.error;
|
||||
setState(ViewState.Error);
|
||||
} else {
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
|
||||
Future searchDoctorsByTime(DiseasesByClinic disease) async {
|
||||
setState(ViewState.Busy);
|
||||
await _service.searchDoctorsByTime(disease);
|
||||
if (_service.hasError) {
|
||||
error = _service.error;
|
||||
setState(ViewState.ErrorLocal);
|
||||
} else {
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
||||
import 'package:diplomaticquarterapp/core/service/AlHabibMedicalService/customer_addresses_service.dart';
|
||||
import 'package:diplomaticquarterapp/core/viewModels/base_view_model.dart';
|
||||
|
||||
import '../../locator.dart';
|
||||
|
||||
class PrescriptionDeliveryViewModel extends BaseViewModel{
|
||||
|
||||
CustomerAddressesService _customerAddressesService = locator<CustomerAddressesService>();
|
||||
|
||||
List<AddressInfo> get addressesList => _customerAddressesService.addressesList;
|
||||
|
||||
Future getCustomerAddresses() async {
|
||||
setState(ViewState.Busy);
|
||||
await _customerAddressesService.getCustomerAddresses(
|
||||
);
|
||||
if (_customerAddressesService.hasError) {
|
||||
error = _customerAddressesService.error;
|
||||
setState(ViewState.ErrorLocal);
|
||||
} else {
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,190 @@
|
||||
import 'package:diplomaticquarterapp/config/size_config.dart';
|
||||
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
||||
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/HealthCalculator/DiseasesByClinic.dart';
|
||||
import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/health-calculator/Bariatrics-viewmodel.dart';
|
||||
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
||||
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/buttons/borderedButton.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
// TODO mosa_remark
|
||||
class BariatricsPage extends StatefulWidget {
|
||||
final age;
|
||||
final gender;
|
||||
final double obeseResult;
|
||||
|
||||
BariatricsPage(this.age, this.gender, this.obeseResult);
|
||||
|
||||
@override
|
||||
_BariatricsPageState createState() => _BariatricsPageState();
|
||||
}
|
||||
|
||||
class _BariatricsPageState extends State<BariatricsPage> {
|
||||
DiseasesByClinic _selectedDisease;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ProjectViewModel projectProvider = Provider.of(context);
|
||||
|
||||
return BaseView<BariatricsViewModel>(
|
||||
onModelReady: (model) => model.getClinicCategory(),
|
||||
builder: (_, model, w) =>
|
||||
AppScaffold(
|
||||
isShowAppBar: true,
|
||||
appBarTitle: "${TranslationBase
|
||||
.of(context)
|
||||
.bariatrics}",
|
||||
baseViewModel: model,
|
||||
body: Column(
|
||||
children: [
|
||||
Container(
|
||||
margin: EdgeInsets.all(8.0),
|
||||
child: Center(
|
||||
child: Texts(TranslationBase
|
||||
.of(context)
|
||||
.bariatricsHeaderMsg),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Container(
|
||||
margin: EdgeInsets.symmetric(
|
||||
horizontal: 16.0, vertical: 8.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
...model.diseasesList
|
||||
.map((item) =>
|
||||
RadioListTile(
|
||||
title: Texts("${item.diseases}"),
|
||||
activeColor: Colors.blue.shade700,
|
||||
value: item.diseasesID,
|
||||
groupValue: _selectedDisease != null
|
||||
? _selectedDisease.diseasesID
|
||||
: -1,
|
||||
selected: _selectedDisease != null ? item
|
||||
.diseasesID ==
|
||||
_selectedDisease.diseasesID : false,
|
||||
onChanged: (val) {
|
||||
setState(() {
|
||||
_selectedDisease = item;
|
||||
});
|
||||
},
|
||||
))
|
||||
.toList()
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Image.asset(
|
||||
_getImageName(widget.gender, widget.obeseResult,
|
||||
projectProvider.isArabic),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||
child: BorderedButton(
|
||||
TranslationBase
|
||||
.of(context)
|
||||
.continues,
|
||||
fontSize: SizeConfig.textMultiplier * 2.1,
|
||||
textColor: Colors.white,
|
||||
vPadding: 8,
|
||||
hPadding: 8,
|
||||
backgroundColor: Theme
|
||||
.of(context)
|
||||
.primaryColor,
|
||||
radius: 8,
|
||||
fontWeight: FontWeight.bold,
|
||||
handler: () async {
|
||||
await model.searchDoctorsByTime(_selectedDisease);
|
||||
if(model.state == ViewState.ErrorLocal){
|
||||
AppToast.showErrorToast(message: model.error);
|
||||
}
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(builder: (context) => BariatricsPage()),
|
||||
// );
|
||||
},
|
||||
),
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.only(bottom: 16.0, left: 16, right: 16),
|
||||
child: BorderedButton(
|
||||
TranslationBase
|
||||
.of(context)
|
||||
.skip,
|
||||
fontSize: SizeConfig.textMultiplier * 2.1,
|
||||
textColor: Colors.blue,
|
||||
vPadding: 8,
|
||||
hPadding: 8,
|
||||
backgroundColor: Color(0x00000000),
|
||||
radius: 8,
|
||||
hasBorder: true,
|
||||
borderColor: Color(0x00000000),
|
||||
fontWeight: FontWeight.bold,
|
||||
handler: () async {
|
||||
await model.searchDoctorsByTime(_selectedDisease);
|
||||
if(model.state == ViewState.ErrorLocal){
|
||||
AppToast.showErrorToast(message: model.error);
|
||||
}
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// MaterialPageRoute(builder: (context) => BariatricsPage()),
|
||||
// );
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
_getImageName(int gender, double obeseResult, bool isArabic) {
|
||||
String path = "assets/images/BMI/";
|
||||
double result = obeseResult;
|
||||
|
||||
if (result < 18.5 && gender == 1) {
|
||||
path += "bmi_blue_male";
|
||||
} else if (result >= 18.5 && result <= 24.9 && gender == 1) {
|
||||
path += "bmi_green_male";
|
||||
} else if (result >= 25 && result <= 29.9 && gender == 1) {
|
||||
path += "bmi_yellow_male";
|
||||
} else if (result >= 30 && result <= 34.9 && gender == 1) {
|
||||
path += "bmi_orange_male";
|
||||
} else if (result >= 35 && gender == 1) {
|
||||
path += "bmi_red_male";
|
||||
} else if (result < 18.5 && gender == 2) {
|
||||
path += "bmi_blue_female";
|
||||
} else if (result >= 18.5 && result <= 24.9 && gender == 2) {
|
||||
path += "bmi_green_female";
|
||||
} else if (result >= 25 && result <= 29.9 && gender == 2) {
|
||||
path += "bmi_yellow_female";
|
||||
} else if (result >= 30 && result <= 34.9 && gender == 2) {
|
||||
path += "bmi_orange_female";
|
||||
} else if (result >= 35 && gender == 2) {
|
||||
path += "bmi_red_female";
|
||||
} else {
|
||||
path += "default.png";
|
||||
}
|
||||
|
||||
if (isArabic) {
|
||||
path += "_ar.png";
|
||||
} else {
|
||||
path += "_en.png";
|
||||
}
|
||||
return path;
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
import 'package:diplomaticquarterapp/core/model/prescriptions/prescription_report.dart';
|
||||
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
||||
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
||||
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:diplomaticquarterapp/core/model/prescriptions/Prescriptions.dart';
|
||||
|
||||
class PrescriptionDeliveryAddressPage extends StatelessWidget {
|
||||
final Prescriptions prescriptions;
|
||||
|
||||
const PrescriptionDeliveryAddressPage({Key key, this.prescriptions})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ProjectViewModel projectViewModel = Provider.of(context);
|
||||
|
||||
return AppScaffold(
|
||||
isShowAppBar: true,
|
||||
appBarTitle: 'Delivery Address',
|
||||
body: SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
SizedBox(
|
||||
height: 15,
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {},
|
||||
child: Container(
|
||||
margin: EdgeInsets.only(left: 10, right: 10, top: 15),
|
||||
height: 50,
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: Colors.grey),
|
||||
borderRadius: BorderRadius.circular(7),
|
||||
color: Colors.white,
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: <Widget>[
|
||||
Container(
|
||||
child: Texts(
|
||||
'Selected Address',
|
||||
variant: 'bodyText',
|
||||
),
|
||||
margin: EdgeInsets.only(left: 10, right: 10),
|
||||
),
|
||||
Icon(
|
||||
Icons.arrow_drop_down,
|
||||
size: 22,
|
||||
color: Colors.grey,
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 15,
|
||||
),
|
||||
Container(
|
||||
|
||||
child: Image.asset(projectViewModel.isArabic
|
||||
? 'assets/images/pharmacy/shipping_image_ar.png'
|
||||
: 'assets/images/pharmacy/shipping_image.png',height: 300,),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
bottomSheet: Container(
|
||||
width: double.infinity,
|
||||
height: MediaQuery.of(context).size.height * 0.25,
|
||||
color: Colors.grey[100],
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Divider(),
|
||||
Container(
|
||||
width: MediaQuery.of(context).size.width * 0.8,
|
||||
child: Button(
|
||||
label: 'Add New Address'.toUpperCase(),
|
||||
onTap: () {},
|
||||
),
|
||||
),
|
||||
Container(
|
||||
width: MediaQuery.of(context).size.width * 0.8,
|
||||
child: Button(
|
||||
label: 'Continue'.toUpperCase(),
|
||||
backgroundColor: Colors.green[200],
|
||||
onTap: () {},
|
||||
))
|
||||
],
|
||||
),
|
||||
));
|
||||
}
|
||||
}
|