fix soap issue on flutter 2

merge-requests/752/head
Elham Rababah 5 years ago
parent 9a2ce62216
commit 57178d3633

@ -8,6 +8,7 @@ import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart';
import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart';
import 'package:flutter/material.dart';
import 'package:flutter_html/shims/dart_ui.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:provider/provider.dart';
@ -18,7 +19,7 @@ class AddExaminationWidget extends StatefulWidget {
final Function(MySelectedExamination) addHistory;
final bool Function(MasterKeyModel) isServiceSelected;
bool isExpand;
final Function expandClick;
final VoidCallback expandClick;
AddExaminationWidget({
required this.item,
@ -89,7 +90,7 @@ class _AddExaminationWidgetState extends State<AddExaminationWidget> {
Container(
margin: EdgeInsets.symmetric(horizontal: 8),
child: InkWell(
onTap: widget.expandClick(),
onTap: widget.expandClick,
child: Icon(widget.isExpand ? Icons.keyboard_arrow_up : Icons.keyboard_arrow_down)),
),
],

@ -8,7 +8,7 @@ import 'package:provider/provider.dart';
class ExaminationItemCard extends StatelessWidget {
final MySelectedExamination examination;
final Function removeExamination;
final VoidCallback removeExamination;
ExaminationItemCard(this.examination, this.removeExamination);
@ -49,7 +49,7 @@ class ExaminationItemCard extends StatelessWidget {
fontSize: SizeConfig.textMultiplier * 1.8,
),
InkWell(
onTap: removeExamination(),
onTap: removeExamination,
child: Icon(
Icons.clear,
size: 20,

@ -276,21 +276,6 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
removeExamination: (masterKey) => removeExamination(masterKey)),
),
);
/*showModalBottomSheet(
backgroundColor: Colors.white,
isScrollControlled: true,
context: context,
builder: (context) {
return AddExaminationDailog(
mySelectedExamination: widget.mySelectedExamination,
addSelectedExamination: () {
setState(() {
Navigator.of(context).pop();
});
},
removeExamination: (masterKey) => removeExamination(masterKey),
);
});*/
}
}

Loading…
Cancel
Save