import 'package:diplomaticquarterapp/core/viewModels/child_vaccines/vaccination_table_view_model.dart'; import 'package:diplomaticquarterapp/core/viewModels/medical/reports_monthly_view_model.dart'; import 'package:diplomaticquarterapp/pages/base/base_view.dart'; import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart'; import 'package:diplomaticquarterapp/widgets/buttons/secondary_button.dart'; import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_html/flutter_html.dart'; import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart'; class VaccinationTablePage extends StatelessWidget { @override Widget build(BuildContext context) { var checkedValue; return BaseView( onModelReady: (model) => model.getCreateVaccinationTable(),//getUserTermsAndConditions(), builder: (_, model, w) => AppScaffold( isShowAppBar: true, baseViewModel: model, appBarTitle: "Vaccination", body: SingleChildScrollView( child:Container( margin: EdgeInsets.only(left: 15,right: 15,top: 70), child: Column( children: [//babyInformationModelList.length ...List.generate(model.creteVaccinationTableModelList.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, ), padding: EdgeInsets.all(12), width: double.infinity, child: Column( children: [ Html( data:"
BCG
HEPATITIS B
"//model.creteVaccinationTableModelList[index].vaccinesDescription , ), // Row(children:[Texts("CHILD NAME"),]), // Row(children:[Texts(model.babyInformationModelList[index].babyName.trim()),]), // Row( // children: [IconButton( // icon: Image.asset(model.babyInformationModelList[index].gender==1? 'assets/images/new-design/male.png':'assets/images/new-design/female.png'), // tooltip: '', // onPressed: () { // setState(() { // // _volume += 10; // // launch("tel://" +model.FindusHospitalModelList[index].phoneNumber); // }); // }, // ), // Texts(model.babyInformationModelList[index].genderDescription), // IconButton( // icon: Icon(Icons.remove_red_eye,color: Colors.red,), // tooltip: 'Increase volume by 10', // onPressed: () { // Navigator.push( // context, // FadePage( // page: VaccinationTablePage(), // // //ChildPage(babyInformationModelList:model.BabyInformationModelList) // // HospitalsPage( // // findusHospitalModelList: model.FindusHospitalModelList, // // ) // // ), // ); // // setState(() { // // // _volume += 10; // // // launch("tel://" +model.FindusHospitalModelList[index].phoneNumber); // // }); // }, // )] // ), // Row(children:[Texts("Birthday"),]), // Row(children:[IconButton( // icon: new Image.asset('assets/images/new-design/calender-secondary.png'), // tooltip: 'Increase volume by 10', // onPressed: () { // setState(() { // // _volume += 10; // // launch("tel://" +model.FindusHospitalModelList[index].phoneNumber); // }); // }, // ), // Texts(DateUtil.yearMonthDay(model.babyInformationModelList[index].dOB)),]), // Row(children:[IconButton( // icon: new Image.asset('assets/images/new-design/garbage.png'), // tooltip: '', // 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: " ", // onTap: () {} ), ), ), ); } }