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( factory Shiftforuser.fromJson(Map<String, dynamic> json) => Shiftforuser(
fromtimetext: json["fromtimetext"], fromtimetext: json["fromtimetext"],
totimetext: json["totimetext"], totimetext: json["totimetext"],
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {
"fromtimetext": fromtimetext, "fromtimetext": fromtimetext,
"totimetext": totimetext, "totimetext": totimetext,
}; };
} }

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