h2o setting ui redesigned.

merge-requests/428/merge
Sikander Saleem 5 years ago
parent 8b49eed6ae
commit 763c16ddd0

@ -232,6 +232,7 @@ const Map localizedValues = {
'heart': {'en': 'Heart Rate', 'ar': 'معدل النبض'}, 'heart': {'en': 'Heart Rate', 'ar': 'معدل النبض'},
"heightUnit": {"en": "height unit", "ar": "وحدة الطول"}, "heightUnit": {"en": "height unit", "ar": "وحدة الطول"},
"weightUnit": {"en": "Weight Unit", "ar": "وحدة الوزن"}, "weightUnit": {"en": "Weight Unit", "ar": "وحدة الوزن"},
"unit": {"en": "Unit", "ar": "وحدة"},
"request": {"en": "Request", "ar": "طلبات الاضافة"}, "request": {"en": "Request", "ar": "طلبات الاضافة"},
"member-name": {"en": "Member Name", "ar": "اسم العضو"}, "member-name": {"en": "Member Name", "ar": "اسم العضو"},
"switch-login": {"en": "Switch User", "ar": "تغير المستخدم"}, "switch-login": {"en": "Switch User", "ar": "تغير المستخدم"},
@ -508,7 +509,7 @@ const Map localizedValues = {
"order": {"en": "My Order", "ar": " طلباتي"}, "order": {"en": "My Order", "ar": " طلباتي"},
"delivered": {"en": "Delivered", "ar": " تم التوصيل"}, "delivered": {"en": "Delivered", "ar": " تم التوصيل"},
"pending": {"en": "Pending", "ar": " معلقة "}, "pending": {"en": "Pending", "ar": " معلقة "},
"enterNameHere": {"en": "Enter the name here", "ar": " أدخل الاسم هنا "}, "enterNameHere": {"en": "Enter Your Name", "ar": "أدخل أسمك"},
"processing": {"en": "Processing", "ar": " تحت المعالجة"}, "processing": {"en": "Processing", "ar": " تحت المعالجة"},
"cancelled": {"en": "Cancelled", "ar": " ملغي"}, "cancelled": {"en": "Cancelled", "ar": " ملغي"},
"writeReview": {"en": "Write Review", "ar": " اكتب تقييمك"}, "writeReview": {"en": "Write Review", "ar": " اكتب تقييمك"},
@ -798,6 +799,7 @@ const Map localizedValues = {
"kg": {"en": "kg", "ar": "كجم"}, "kg": {"en": "kg", "ar": "كجم"},
"lb": {"en": "lb", "ar": "رطل"}, "lb": {"en": "lb", "ar": "رطل"},
"birth_date": {"en": "Birth Date", "ar": "تاريخ الميلاد"}, "birth_date": {"en": "Birth Date", "ar": "تاريخ الميلاد"},
"date_of_birth": {"en": "Date of Birth", "ar": "تاريخ الولادة"},
"mass": {"en": "Mass", "ar": "كتلة"}, "mass": {"en": "Mass", "ar": "كتلة"},
"temp-c": {"en": "°C", "ar": "°س"}, "temp-c": {"en": "°C", "ar": "°س"},
"bpm": {"en": "bpm", "ar": "نبضة"}, "bpm": {"en": "bpm", "ar": "نبضة"},
@ -1263,6 +1265,7 @@ const Map localizedValues = {
"today": {"en": "Today", "ar": "اليوم"}, "today": {"en": "Today", "ar": "اليوم"},
"week": {"en": "Week", "ar": "أسبوع"}, "week": {"en": "Week", "ar": "أسبوع"},
"month": {"en": "Month", "ar": "شهر"}, "month": {"en": "Month", "ar": "شهر"},
"enter_detail_below": {"en": "Enter the details below", "ar": "أدخل التفاصيل أدناه"},
"h2o-amount-of-water": {"en": "Enter the amount of water:", "ar": "ادخل كمية الماء:"}, "h2o-amount-of-water": {"en": "Enter the amount of water:", "ar": "ادخل كمية الماء:"},
"update-user": {"en": "Update Information", "ar": "تحديث بيانات"}, "update-user": {"en": "Update Information", "ar": "تحديث بيانات"},
"editname": {"en": "Enter the name here", "ar": "أدخل الاسم هنا"}, "editname": {"en": "Enter the name here", "ar": "أدخل الاسم هنا"},
@ -1281,7 +1284,9 @@ const Map localizedValues = {
"remaining": {"en": "Remaining", "ar": "المتبقي"}, "remaining": {"en": "Remaining", "ar": "المتبقي"},
"taken": {"en": "Taken", "ar": " مأخوذ"}, "taken": {"en": "Taken", "ar": " مأخوذ"},
"ml": {"en": "ML", "ar": "مل"}, "ml": {"en": "ML", "ar": "مل"},
"mililitre": {"en": "Mililitre (ml)", "ar": "مليلتر (مل)"},
"l": {"en": "L", "ar": "لتر"}, "l": {"en": "L", "ar": "لتر"},
"litre": {"en": "Litre (l)", "ar": "لتر (لتر)"},
"custom-label": {"en": "Enter amount", "ar": "أدخل كمية الماء"}, "custom-label": {"en": "Enter amount", "ar": "أدخل كمية الماء"},
"custom-label-in-litres": {"en": "Enter amount in liters", "ar": "أدخل الكمية باللتر"}, "custom-label-in-litres": {"en": "Enter amount in liters", "ar": "أدخل الكمية باللتر"},
"custom-label-in-mililitres": {"en": "Enter amount in millilitres", "ar": "أدخل الكمية بالملليتر"}, "custom-label-in-mililitres": {"en": "Enter amount in millilitres", "ar": "أدخل الكمية بالملليتر"},

@ -1,9 +1,6 @@
import 'package:diplomaticquarterapp/config/shared_pref_kay.dart'; import 'package:diplomaticquarterapp/config/shared_pref_kay.dart';
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/H2O/user_detail_model.dart'; import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/H2O/user_detail_model.dart';
import 'package:diplomaticquarterapp/core/service/AlHabibMedicalService/H2O_service.dart';
import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/H2O_view_model.dart'; import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/H2O_view_model.dart';
import 'package:diplomaticquarterapp/pages/BookAppointment/widgets/BranchView.dart';
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
import 'package:diplomaticquarterapp/uitl/app_toast.dart'; import 'package:diplomaticquarterapp/uitl/app_toast.dart';
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart'; import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
@ -23,6 +20,7 @@ import 'Dialog/setting_page_radio_button_list_dialog.dart';
class H2oSetting extends StatefulWidget { class H2oSetting extends StatefulWidget {
final UserDetailModel userDetailModel; final UserDetailModel userDetailModel;
final H2OViewModel viewModel; final H2OViewModel viewModel;
H2oSetting({Key key, this.userDetailModel, this.viewModel}) : super(key: key); H2oSetting({Key key, this.userDetailModel, this.viewModel}) : super(key: key);
@override @override
@ -35,6 +33,9 @@ class _H2oSettingState extends State<H2oSetting> {
TextEditingController _nameController = TextEditingController(); TextEditingController _nameController = TextEditingController();
TextEditingController _heightController = TextEditingController(); TextEditingController _heightController = TextEditingController();
TextEditingController _weightController = TextEditingController(); TextEditingController _weightController = TextEditingController();
List<PopupMenuItem> _weightPopupList = List();
List<PopupMenuItem> _heightPopupList = List();
bool _isUnitML = true; bool _isUnitML = true;
bool _isGenderMale = false; bool _isGenderMale = false;
bool _isHeightCM = false; bool _isHeightCM = false;
@ -69,6 +70,7 @@ class _H2oSettingState extends State<H2oSetting> {
} }
SharedPreferences prefs; SharedPreferences prefs;
void readPrefs() async { void readPrefs() async {
prefs = await SharedPreferences.getInstance(); prefs = await SharedPreferences.getInstance();
_isUnitML = (prefs.getString(H2O_UNIT) ?? "ml") == "ml" ? true : false; _isUnitML = (prefs.getString(H2O_UNIT) ?? "ml") == "ml" ? true : false;
@ -93,6 +95,9 @@ class _H2oSettingState extends State<H2oSetting> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
_weightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).kg), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).lb), value: false)];
_heightPopupList = <PopupMenuItem>[PopupMenuItem(child: Text(TranslationBase.of(context).cm), value: true), PopupMenuItem(child: Text(TranslationBase.of(context).ft), value: false)];
return AppScaffold( return AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBarTitle: TranslationBase.of(context).h2o, appBarTitle: TranslationBase.of(context).h2o,
@ -109,30 +114,31 @@ class _H2oSettingState extends State<H2oSetting> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
inputWidget(TranslationBase.of(context).enterNameHere, TranslationBase.of(context).enterNameHere, _nameController), Text(
// TextField( TranslationBase.of(context).enterDetailBelow,
// controller: _nameController, style: TextStyle(
// decoration: InputDecoration( fontSize: 19,
// labelText: TranslationBase.of(context).enterNameHere, height: 23 / 19,
// labelStyle: TextStyle(color: Colors.black87), fontWeight: FontWeight.w700,
// fillColor: Colors.white, color: Color(0xff2E303A),
// filled: true, letterSpacing: -1.14,
// border: UnderlineInputBorder( ),
// borderSide: BorderSide( ),
// width: 0, SizedBox(height: 12),
// style: BorderStyle.none, _containerWidget(inputWidget(TranslationBase.of(context).enterNameHere, TranslationBase.of(context).name, _nameController)),
// ),
// borderRadius: BorderRadius.circular(6.0),
// ),
// ),
// ),
SizedBox(height: 16), SizedBox(height: 16),
Text( Text(
TranslationBase.of(context).preferredunit, TranslationBase.of(context).preferredunit,
style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12), style: TextStyle(
fontSize: 14,
height: 21 / 14,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.44,
),
), ),
SizedBox(height: 12), SizedBox(height: 12),
_commonButtonsRow(TranslationBase.of(context).ml, TranslationBase.of(context).l, _isUnitML, (value) { _commonRadioButtonsRow(TranslationBase.of(context).mililitre, TranslationBase.of(context).litre, _isUnitML, (value) {
if (_isUnitML != value) { if (_isUnitML != value) {
setState(() { setState(() {
_isUnitML = value; _isUnitML = value;
@ -142,68 +148,69 @@ class _H2oSettingState extends State<H2oSetting> {
SizedBox(height: 12), SizedBox(height: 12),
Text( Text(
TranslationBase.of(context).pleaseSelectGender, TranslationBase.of(context).pleaseSelectGender,
style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48, height: 18 / 12), style: TextStyle(
fontSize: 14,
height: 21 / 14,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.44,
),
), ),
SizedBox(height: 12), SizedBox(height: 12),
_commonButtonsRow(TranslationBase.of(context).male, TranslationBase.of(context).female, _isGenderMale, (value) { _commonRadioButtonsRow(TranslationBase.of(context).male, TranslationBase.of(context).female, _isGenderMale, (value) {
if (_isGenderMale != value) { if (_isGenderMale != value) {
setState(() { setState(() {
_isGenderMale = value; _isGenderMale = value;
}); });
} }
}), }),
SizedBox(height: 12), SizedBox(height: 18),
Text(TranslationBase.of(context).height), _commonInputAndUnitRow(
_commonSlidersRow(_heightController, 1, 270, _heightValue, (text) { TranslationBase.of(context).height,
_heightController,
1,
270,
_heightValue,
(text) {
_heightController.text = text; _heightController.text = text;
}, (value) { },
setState(() { (value) {
_heightValue = value; _heightValue = value;
}); },
}), _isHeightCM ? TranslationBase.of(context).cm : TranslationBase.of(context).ft,
SizedBox(height: 8), (value) {
Text(TranslationBase.of(context).heightUnit),
SizedBox(height: 8),
_commonButtonsRow(TranslationBase.of(context).cm, TranslationBase.of(context).ft, _isHeightCM, (value) {
if (_isHeightCM != value) { if (_isHeightCM != value) {
setState(() { setState(() {
_isHeightCM = value; _isHeightCM = value;
}); });
} }
}), },
SizedBox(height: 8), _heightPopupList),
_commonSlidersRow(_weightController, 1, 250, _weightValue, (text) { SizedBox(height: 12),
_weightController.text = text; _commonInputAndUnitRow(
}, (value) { TranslationBase.of(context).weight,
setState(() { _weightController,
1,
250,
_weightValue,
(text) {
_heightController.text = text;
},
(value) {
_weightValue = value; _weightValue = value;
}); },
}), _isWeightKG ? TranslationBase.of(context).kg : TranslationBase.of(context).lb,
SizedBox(height: 8), (value) {
Text(TranslationBase.of(context).weightUnit),
SizedBox(height: 8),
_commonButtonsRow(TranslationBase.of(context).kg, TranslationBase.of(context).lb, _isWeightKG, (value) {
if (_isWeightKG != value) { if (_isWeightKG != value) {
setState(() { setState(() {
_isWeightKG = value; _isWeightKG = value;
}); });
} }
}), },
Padding( _weightPopupList),
padding: EdgeInsets.only(top: 8.0, bottom: 8.0), SizedBox(height: 12),
child: Divider(height: 1.5, color: Colors.black54), _containerWidget(
), _commonDropDownView(TranslationBase.of(context).dateOfBirth, DateUtil.getFormattedDate(_dobDate, "dd MMMM, yyyy"), () {
Container(
padding: EdgeInsets.all(8),
width: MediaQuery.of(context).size.width,
decoration: BoxDecoration(borderRadius: BorderRadius.circular(8), color: Colors.white),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("${TranslationBase.of(context).birth_date}:"),
SizedBox(height: 8),
InkWell(
onTap: () {
showModalBottomSheet( showModalBottomSheet(
context: context, context: context,
builder: (context) { builder: (context) {
@ -254,17 +261,11 @@ class _H2oSettingState extends State<H2oSetting> {
]), ]),
); );
}); });
}, // implement cupertino dialog to select date }, iconData: Icons.calendar_today),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [Text(DateUtil.getFormattedDate(_dobDate, "yyyy-MM-dd")), Icon(Icons.arrow_drop_down_outlined)]),
)
],
), ),
), SizedBox(height: 12),
SizedBox(height: 8), _containerWidget(
_commonDialogSelectorRow(TranslationBase.of(context).activityLevel, _activityLevelListEng[_selectedActiveLevel - 1], () { _commonDropDownView(TranslationBase.of(context).activityLevel, _activityLevelListEng[_selectedActiveLevel - 1], () {
showDialog( showDialog(
context: context, context: context,
child: CommonRadioButtonDialog( child: CommonRadioButtonDialog(
@ -280,8 +281,10 @@ class _H2oSettingState extends State<H2oSetting> {
), ),
); );
}), }),
SizedBox(height: 8), ),
_commonDialogSelectorRow(TranslationBase.of(context).reminderLabel, _remindedTimeListEng[_selectedRemindedTime], () { SizedBox(height: 12),
_containerWidget(
_commonDropDownView(TranslationBase.of(context).reminderLabel, _remindedTimeListEng[_selectedRemindedTime], () {
showDialog( showDialog(
context: context, context: context,
child: CommonRadioButtonDialog( child: CommonRadioButtonDialog(
@ -296,21 +299,6 @@ class _H2oSettingState extends State<H2oSetting> {
), ),
); );
}), }),
SizedBox(height: 16),
SizedBox(
height: 50,
width: MediaQuery.of(context).size.width,
child: FlatButton(
color: Theme.of(context).appBarTheme.color,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
onPressed: _updateUserDetails,
child: Text(
TranslationBase.of(context).save,
style: TextStyle(color: Colors.white, fontSize: 18, fontWeight: FontWeight.w600),
),
),
), ),
], ],
), ),
@ -330,7 +318,7 @@ class _H2oSettingState extends State<H2oSetting> {
); );
} }
Widget inputWidget(String _labelText, String _hintText, TextEditingController _controller, {String prefix, bool isEnable = true, bool hasSelection = false}) { Widget _containerWidget(Widget child) {
return Container( return Container(
padding: EdgeInsets.only(left: 16, right: 16, bottom: 15, top: 15), padding: EdgeInsets.only(left: 16, right: 16, bottom: 15, top: 15),
alignment: Alignment.center, alignment: Alignment.center,
@ -342,7 +330,48 @@ class _H2oSettingState extends State<H2oSetting> {
width: 1, width: 1,
), ),
), ),
child: InkWell( child: child,
);
}
Widget _commonDropDownView(String title, String value, VoidCallback callback, {IconData iconData}) {
return InkWell(
onTap: callback,
child: Row(
children: [
Expanded(
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Text(
title,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
color: Color(0xff2E303A),
letterSpacing: -0.44,
),
),
Text(
value,
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w400,
color: Color(0xff575757),
letterSpacing: -0.56,
),
),
]),
),
Icon(
iconData ?? Icons.keyboard_arrow_down_sharp,
color: Color(0xff2E303A),
)
],
),
);
}
Widget inputWidget(String _labelText, String _hintText, TextEditingController _controller, {String prefix, bool isEnable = true, bool hasSelection = false}) {
return InkWell(
onTap: hasSelection ? () {} : null, onTap: hasSelection ? () {} : null,
child: Row( child: Row(
children: [ children: [
@ -354,9 +383,9 @@ class _H2oSettingState extends State<H2oSetting> {
Text( Text(
_labelText, _labelText,
style: TextStyle( style: TextStyle(
fontSize: 11, fontSize: 12,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Color(0xff2B353E), color: Color(0xff2E303A),
letterSpacing: -0.44, letterSpacing: -0.44,
), ),
), ),
@ -372,8 +401,8 @@ class _H2oSettingState extends State<H2oSetting> {
fontSize: 14, fontSize: 14,
height: 21 / 14, height: 21 / 14,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: Color(0xff2B353E), color: Color(0xff575757),
letterSpacing: -0.44, letterSpacing: -0.56,
), ),
decoration: InputDecoration( decoration: InputDecoration(
isDense: true, isDense: true,
@ -410,18 +439,47 @@ class _H2oSettingState extends State<H2oSetting> {
if (hasSelection) Icon(Icons.keyboard_arrow_down_outlined), if (hasSelection) Icon(Icons.keyboard_arrow_down_outlined),
], ],
), ),
),
); );
} }
Widget _commonButtonsRow(String rightText, String leftText, bool checkParam, Function(bool) callBack) { Widget _commonRadioButtonsRow(String rightText, String leftText, bool checkParam, Function(bool) callBack) {
return Row( return Row(
children: [ children: [
Row(children: [ Row(
Checkbox(value: null, onChanged: null) mainAxisSize: MainAxisSize.min,
],) children: [
SizedBox(width: 22, height: 22, child: Radio(value: true, groupValue: checkParam, onChanged: callBack)),
SizedBox(width: 8),
Text(
rightText,
style: TextStyle(
fontSize: 14,
height: 21 / 14,
fontWeight: FontWeight.w600,
color: Color(0xff575757),
letterSpacing: -0.44,
),
),
],
),
SizedBox(width: 12),
Row(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(width: 22, height: 22, child: Radio(value: false, groupValue: checkParam, onChanged: callBack)),
SizedBox(width: 8),
Text(
leftText,
style: TextStyle(
fontSize: 14,
height: 21 / 14,
fontWeight: FontWeight.w600,
color: Color(0xff575757),
letterSpacing: -0.44,
),
),
],
),
], ],
); );
@ -456,7 +514,99 @@ class _H2oSettingState extends State<H2oSetting> {
]); ]);
} }
Widget _commonSlidersRow(_controller, double _minValue, double _maxValue, double _valueOrg, Function(String) onTextValueChange, Function(double) onValueChange) { Widget _commonInputAndUnitRow(_title, _controller, double _minValue, double _maxValue, double _valueOrg, Function(String) onTextValueChange, Function(double) onValueChange, String unitTitle,
Function(bool) onUnitTap, _list) {
return _containerWidget(
Row(
children: [
Expanded(
flex: 3,
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
_title,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
color: Color(0xff2E303A),
letterSpacing: -0.44,
),
),
TextField(
controller: _controller,
keyboardType: TextInputType.number,
onChanged: (value) {
double _value = double.parse(value);
if (_value > _maxValue) {
onTextValueChange(_maxValue.toStringAsFixed(0));
onValueChange(_maxValue);
return;
} else if (_value < _minValue) {
onTextValueChange(_minValue.toStringAsFixed(0));
onValueChange(_minValue);
return;
} else if (_value >= _minValue && _value <= _maxValue) {
onValueChange(_value);
return;
}
},
inputFormatters: [
FilteringTextInputFormatter.allow(RegExp(r'[0-9]')),
],
style: TextStyle(
color: Color(0xff575757),
letterSpacing: -0.56,
),
decoration: InputDecoration(
isDense: true,
hintText: "0",
hintStyle: TextStyle(
fontSize: 14,
height: 21 / 14,
fontWeight: FontWeight.w400,
color: Color(0xff575757),
letterSpacing: -0.56,
),
contentPadding: EdgeInsets.zero,
border: InputBorder.none,
focusedBorder: InputBorder.none,
enabledBorder: InputBorder.none,
),
),
],
),
),
Container(height: 34, width: 1, color: Color(0xffE0E0E0), margin: EdgeInsets.only(left: 12, right: 12)),
Expanded(
flex: 1,
child: PopupMenuButton(
child: _commonDropDownView(TranslationBase.of(context).unit, unitTitle, null),
onSelected: (value) {
onUnitTap(value);
},
itemBuilder: (context) => _list),
)
],
),
);
}
Widget _commonSlidersRow(_title, _controller, double _minValue, double _maxValue, double _valueOrg, Function(String) onTextValueChange, Function(double) onValueChange) {
// if (_valueOrg < 174) {
// return _containerWidget(Row(
// children: [
// Expanded(flex: 3, child: inputWidget(_title, "$_valueOrg", _controller)),
// Container(height: 34,width: 1,color:Color(0xffE0E0E0),margin: EdgeInsets.only(left: 12,right: 12)),
// Expanded(
// flex: 1,
// child: _commonDropDownView(TranslationBase.of(context).unit, _isWeightKG ? TranslationBase.of(context).kg : TranslationBase.of(context).lb, () {}),
// )
// ],
// ));
// }
return Container( return Container(
margin: EdgeInsets.only(top: 6), margin: EdgeInsets.only(top: 6),
padding: EdgeInsets.all(6), padding: EdgeInsets.all(6),
@ -584,6 +734,7 @@ class _H2oSettingState extends State<H2oSetting> {
} }
final CalendarPlugin _myPlugin = CalendarPlugin(); final CalendarPlugin _myPlugin = CalendarPlugin();
void _addReminderToCalender(int _selectedRemindedTime) async { void _addReminderToCalender(int _selectedRemindedTime) async {
bool _calendarPermission = await _myPlugin.hasPermissions(); bool _calendarPermission = await _myPlugin.hasPermissions();
if (_calendarPermission) { if (_calendarPermission) {

@ -481,6 +481,8 @@ class TranslationBase {
String get height => localizedValues['height'][locale.languageCode]; String get height => localizedValues['height'][locale.languageCode];
String get unit => localizedValues['unit'][locale.languageCode];
String get heightUnit => localizedValues['heightUnit'][locale.languageCode]; String get heightUnit => localizedValues['heightUnit'][locale.languageCode];
String get weightUnit => localizedValues['weightUnit'][locale.languageCode]; String get weightUnit => localizedValues['weightUnit'][locale.languageCode];
@ -1306,6 +1308,8 @@ class TranslationBase {
String get birth_date => localizedValues['birth_date'][locale.languageCode]; String get birth_date => localizedValues['birth_date'][locale.languageCode];
String get dateOfBirth => localizedValues['date_of_birth'][locale.languageCode];
String get mass => localizedValues['mass'][locale.languageCode]; String get mass => localizedValues['mass'][locale.languageCode];
String get tempC => localizedValues['temp-c'][locale.languageCode]; String get tempC => localizedValues['temp-c'][locale.languageCode];
@ -1792,6 +1796,8 @@ class TranslationBase {
String get month => localizedValues['Month'][locale.languageCode]; String get month => localizedValues['Month'][locale.languageCode];
String get enterDetailBelow => localizedValues['enter_detail_below'][locale.languageCode];
String get point => localizedValues['point'][locale.languageCode]; String get point => localizedValues['point'][locale.languageCode];
String get riyal => localizedValues['riyal'][locale.languageCode]; String get riyal => localizedValues['riyal'][locale.languageCode];
@ -2062,6 +2068,10 @@ class TranslationBase {
String get ml => localizedValues["ml"][locale.languageCode]; String get ml => localizedValues["ml"][locale.languageCode];
String get mililitre => localizedValues["mililitre"][locale.languageCode];
String get litre => localizedValues["litre"][locale.languageCode];
String get l => localizedValues["l"][locale.languageCode]; String get l => localizedValues["l"][locale.languageCode];
String get customLabel => localizedValues["custom-label"][locale.languageCode]; String get customLabel => localizedValues["custom-label"][locale.languageCode];

Loading…
Cancel
Save