|
|
|
@ -11,18 +11,19 @@ import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
class Summary extends StatefulWidget {
|
|
|
|
|
final Function changeCurrentTab;
|
|
|
|
|
final Function(int)? changeCurrentTab;
|
|
|
|
|
final PatientER patientER;
|
|
|
|
|
final PatientER_RC patientER_RC;
|
|
|
|
|
final AmRequestViewModel amRequestViewModel;
|
|
|
|
|
|
|
|
|
|
Summary({Key? key, required this.changeCurrentTab, required this.patientER, required this.patientER_RC, required this.amRequestViewModel});
|
|
|
|
|
final TabController tabController;
|
|
|
|
|
Summary({Key? key, required this.changeCurrentTab, required this.patientER, required this.patientER_RC, required this.amRequestViewModel, required this.tabController});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_SummaryState createState() => _SummaryState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _SummaryState extends State<Summary> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
@ -137,6 +138,8 @@ class _SummaryState extends State<Summary> {
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
child: DefaultButton(TranslationBase.of(context).send, () async {
|
|
|
|
|
await widget.amRequestViewModel.insertERPressOrder(patientER: widget.patientER_RC);
|
|
|
|
|
widget.tabController.animateTo(1);
|
|
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|