child Vaccines
parent
0e4ff1f804
commit
37b817e0c8
@ -0,0 +1,129 @@
|
|||||||
|
import 'package:diplomaticquarterapp/core/model/childvaccines/List_BabyInformationModel.dart';
|
||||||
|
import 'package:diplomaticquarterapp/core/viewModels/child_vaccines/child_vaccines_view_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/buttons/secondary_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';
|
||||||
|
|
||||||
|
class ChildPage extends StatefulWidget {
|
||||||
|
//final List<List_BabyInformationModel> babyInformationModelList;
|
||||||
|
|
||||||
|
// ChildPage({Key key, this.babyInformationModelList}) ;
|
||||||
|
|
||||||
|
@override
|
||||||
|
_ChildPageState createState() => _ChildPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ChildPageState extends State<ChildPage> with SingleTickerProviderStateMixin {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
var checkedValue= false;
|
||||||
|
return BaseView<ChildVaccinesViewModel>(
|
||||||
|
onModelReady: (model) => model.getBabyInformatioRequestOrders(),//model.getCOC(),getFindUsRequestOrders()
|
||||||
|
builder: (_, model, widget) => AppScaffold(
|
||||||
|
baseViewModel: model,
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.only(left: 15,right: 15,top: 70),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
...List.generate(model.babyInformationModelList.length, (index) =>
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.rectangle,
|
||||||
|
border: Border.all(color: Colors.white, width: 0.5),
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(5)),
|
||||||
|
color: Colors.white,
|
||||||
|
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(children:[Texts("CHILD NAME"),]),
|
||||||
|
Row(children:[Texts(model.babyInformationModelList[index].babyName),]),
|
||||||
|
|
||||||
|
Row(
|
||||||
|
children: [IconButton(
|
||||||
|
icon: Icon(Icons.phone,color: Colors.red,),
|
||||||
|
tooltip: 'Increase volume by 10',
|
||||||
|
onPressed: () {
|
||||||
|
setState(() {
|
||||||
|
// _volume += 10;
|
||||||
|
// launch("tel://" +model.FindusHospitalModelList[index].phoneNumber);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
Texts(model.babyInformationModelList[index].babyName),
|
||||||
|
IconButton(
|
||||||
|
icon: Icon(Icons.phone,color: Colors.red,),
|
||||||
|
tooltip: 'Increase volume by 10',
|
||||||
|
onPressed: () {
|
||||||
|
setState(() {
|
||||||
|
// _volume += 10;
|
||||||
|
// launch("tel://" +model.FindusHospitalModelList[index].phoneNumber);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
)]
|
||||||
|
),
|
||||||
|
Row(children:[Texts("Birthday"),]),
|
||||||
|
Row(children:[IconButton(
|
||||||
|
icon: Icon(Icons.phone,color: Colors.red,),
|
||||||
|
tooltip: 'Increase volume by 10',
|
||||||
|
onPressed: () {
|
||||||
|
setState(() {
|
||||||
|
// _volume += 10;
|
||||||
|
// launch("tel://" +model.FindusHospitalModelList[index].phoneNumber);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
Texts(model.babyInformationModelList[index].dOB.toString()),]),
|
||||||
|
Row(children:[IconButton(
|
||||||
|
icon: Icon(Icons.phone,color: Colors.red,),
|
||||||
|
tooltip: 'Increase volume by 10',
|
||||||
|
onPressed: () {
|
||||||
|
setState(() {
|
||||||
|
// _volume += 10;
|
||||||
|
// launch("tel://" +model.FindusHospitalModelList[index].phoneNumber);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
Texts("Birthday"),]),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
],
|
||||||
|
|
||||||
|
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
bottomSheet: Container(
|
||||||
|
height: MediaQuery.of(context).size.height * 0.12,
|
||||||
|
width: double.infinity,
|
||||||
|
|
||||||
|
padding: EdgeInsets.all(12),
|
||||||
|
child: SecondaryButton(
|
||||||
|
textColor: Colors.white,
|
||||||
|
color: checkedValue== false ?Colors.white24:Color.fromRGBO(63, 72, 74, 1,),
|
||||||
|
label: "ADD NEW CHILD ",
|
||||||
|
//
|
||||||
|
onTap: (){
|
||||||
|
|
||||||
|
// bloodDetails.city=_selectedHospital.toString();
|
||||||
|
|
||||||
|
// bloodDetails.
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue