Null Safety

update_flutter_3.16.0_voipcall
Aamir Muhammad 2 years ago
parent 5194cab7ec
commit c3ff456645

@ -70,12 +70,12 @@ class Shiftforuser {
});
factory Shiftforuser.fromJson(Map<String, dynamic> json) => Shiftforuser(
fromtimetext: json["fromtimetext"],
totimetext: json["totimetext"],
);
fromtimetext: json["fromtimetext"],
totimetext: json["totimetext"],
);
Map<String, dynamic> toJson() => {
"fromtimetext": fromtimetext,
"totimetext": totimetext,
};
"fromtimetext": fromtimetext,
"totimetext": totimetext,
};
}

@ -10,12 +10,10 @@ import '../../core/viewModel/project_view_model.dart';
import '../../core/viewModel/schedule_view_model.dart';
import '../../icons_app/doctor_app_icons.dart';
import '../../utils/date-utils.dart';
import '../../utils/dr_app_toast_msg.dart';
import '../../utils/translations_delegate_base_utils.dart';
import '../../widgets/shared/app_scaffold_widget.dart';
import '../../widgets/shared/errors/error_message.dart';
import '../base/base_view.dart';
import '../patients/register_patient/CustomEditableText.dart';
class DoctorSchedulePage extends StatefulWidget {
@override
@ -188,25 +186,15 @@ class _DoctorSchedulePageState extends State<DoctorSchedulePage> {
// Icon(Icons.arrow_forward, size: 16.0),
],
),
Container(
height: 45,
child: ListView
.builder(
itemCount: model
.getDoctorRotation[
index]
.scheduleforuser![
index2]!
.shiftforuser
!.length,
itemBuilder: (context,
index3) =>
Row(children: [
Text(model.getDoctorRotation[index].scheduleforuser![index2].shiftforuser![index3].fromtimetext.toString()),
Text(TranslationBase.of(context).to),
Text(model.getDoctorRotation[index].scheduleforuser![index2].shiftforuser![index3].totimetext.toString())
])))
Container(
height: 45,
child: ListView.builder(
itemCount: model.getDoctorRotation[index].scheduleforuser![index2]!.shiftforuser!.length,
itemBuilder: (context, index3) => Row(children: [
Text(model.getDoctorRotation[index].scheduleforuser![index2].shiftforuser![index3].fromtimetext.toString()),
Text(" " + TranslationBase.of(context).to + " "),
Text(model.getDoctorRotation[index].scheduleforuser![index2].shiftforuser![index3].totimetext.toString())
])))
// ],)
]))),

Loading…
Cancel
Save