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/expandable-widget-header-body.dart';
import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart'; import 'package:doctor_app_flutter/widgets/shared/text_fields/app-textfield-custom.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_html/shims/dart_ui.dart';
import 'package:hexcolor/hexcolor.dart'; import 'package:hexcolor/hexcolor.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
@ -18,7 +19,7 @@ class AddExaminationWidget extends StatefulWidget {
final Function(MySelectedExamination) addHistory; final Function(MySelectedExamination) addHistory;
final bool Function(MasterKeyModel) isServiceSelected; final bool Function(MasterKeyModel) isServiceSelected;
bool isExpand; bool isExpand;
final Function expandClick; final VoidCallback expandClick;
AddExaminationWidget({ AddExaminationWidget({
required this.item, required this.item,
@ -89,7 +90,7 @@ class _AddExaminationWidgetState extends State<AddExaminationWidget> {
Container( Container(
margin: EdgeInsets.symmetric(horizontal: 8), margin: EdgeInsets.symmetric(horizontal: 8),
child: InkWell( child: InkWell(
onTap: widget.expandClick(), onTap: widget.expandClick,
child: Icon(widget.isExpand ? Icons.keyboard_arrow_up : Icons.keyboard_arrow_down)), 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 { class ExaminationItemCard extends StatelessWidget {
final MySelectedExamination examination; final MySelectedExamination examination;
final Function removeExamination; final VoidCallback removeExamination;
ExaminationItemCard(this.examination, this.removeExamination); ExaminationItemCard(this.examination, this.removeExamination);
@ -49,7 +49,7 @@ class ExaminationItemCard extends StatelessWidget {
fontSize: SizeConfig.textMultiplier * 1.8, fontSize: SizeConfig.textMultiplier * 1.8,
), ),
InkWell( InkWell(
onTap: removeExamination(), onTap: removeExamination,
child: Icon( child: Icon(
Icons.clear, Icons.clear,
size: 20, size: 20,

@ -276,21 +276,6 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage> {
removeExamination: (masterKey) => removeExamination(masterKey)), 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