fix the last errors

merge-requests/899/head
Elham Rababh 4 years ago
parent 02e4a37d00
commit 3a8d8f9aa7

@ -12,9 +12,8 @@ import 'package:flutter/material.dart';
import 'doctor_repaly_chat.dart'; import 'doctor_repaly_chat.dart';
class NotRepliedDoctorQuestions extends StatefulWidget { class NotRepliedDoctorQuestions extends StatefulWidget {
final Function changeCurrentTab;
const NotRepliedDoctorQuestions({Key? key, required this.changeCurrentTab}) const NotRepliedDoctorQuestions({Key? key})
: super(key: key); : super(key: key);
@override @override

@ -16,7 +16,7 @@ class PageStepperWidget extends StatelessWidget {
final int stepsCount; final int stepsCount;
final int currentStepIndex; final int currentStepIndex;
final Size screenSize; final Size screenSize;
final List<String> stepsTitles; final List<String> ?stepsTitles;
PageStepperWidget( PageStepperWidget(
{required this.stepsCount, {required this.stepsCount,

@ -96,10 +96,10 @@ class LineChartForDiabetic extends StatelessWidget {
titlesData: FlTitlesData( titlesData: FlTitlesData(
bottomTitles: SideTitles( bottomTitles: SideTitles(
showTitles: true, showTitles: true,
getTextStyles: (value) => TextStyle( getTextStyles: (context, value) { return TextStyle(
color: Colors.black, color: Colors.black,
fontSize: 10, fontSize: 10,
), );},
rotateAngle: -65, rotateAngle: -65,
//rotateAngle:-65, //rotateAngle:-65,
interval: 100, interval: 100,
@ -124,7 +124,7 @@ class LineChartForDiabetic extends StatelessWidget {
), ),
leftTitles: SideTitles( leftTitles: SideTitles(
showTitles: true, showTitles: true,
getTextStyles: (value) => TextStyle( getTextStyles: (context, value) => TextStyle(
color: Colors.black, color: Colors.black,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 10, fontSize: 10,

@ -395,7 +395,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen> with Single
patient, patient,
model.startCallRes != null model.startCallRes != null
? model.startCallRes ? model.startCallRes
.isRecording .isRecording!
: true, : true,
callConnected, callConnected,
callDisconnected); callDisconnected);

@ -193,7 +193,7 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
}, },
onChanged: (newValue) { onChanged: (newValue) {
setState(() { setState(() {
offTime = newValue; offTime = newValue.toString();
}); });
if (offTime == '1') { if (offTime == '1') {
model2.getReasons(18); model2.getReasons(18);
@ -206,7 +206,7 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
model2 model2
.getReasons(102); .getReasons(102);
setState(() { setState(() {
offTime = newValue; offTime = newValue.toString();
}); });
} }
}, },
@ -564,94 +564,96 @@ class _RescheduleLeaveScreen extends State<RescheduleLeaveScreen> {
crossAxisAlignment: crossAxisAlignment:
CrossAxisAlignment.start, CrossAxisAlignment.start,
children: [ children: [
Row( /// TODO Elham*2 fix it
mainAxisSize: MainAxisSize.max, // Row(
children: <Widget>[ // mainAxisSize: MainAxisSize.max,
if (model2.coveringDoctors.length > // children: <Widget>[
0) // if (model2.coveringDoctors.length >
Expanded( // 0)
// add Expanded to have your dropdown button fill remaining space // Expanded(
child: DropdownSearch( // // add Expanded to have your dropdown button fill remaining space
mode: Mode.BOTTOM_SHEET, // child: DropdownSearch(
// mode: Mode.BOTTOM_SHEET,
dropdownSearchDecoration: //
InputDecoration( // dropdownSearchDecoration:
contentPadding: // InputDecoration(
EdgeInsets.all(0), // contentPadding:
border: // EdgeInsets.all(0),
InputBorder.none), // border:
//maxHeight: 300, // InputBorder.none),
items: model2.coveringDoctors // //maxHeight: 300,
.map((item) { // items: model2.coveringDoctors
return projectsProvider // .map((item) {
.isArabic // return projectsProvider
? item['doctorNameN'] // .isArabic
: item['doctorName']; // ? item['doctorNameN']
}).toList(), // : item['doctorName'];
// label: "Doctor List", // }).toList(),
onChanged: (item) { // // label: "Doctor List",
model2.coveringDoctors // onChanged: (_item) {
.forEach((newVal) => { // model2.coveringDoctors
if (newVal[ // .forEach((newVal) => {
'doctorName'] == // if (newVal[
item) // 'doctorName'] ==
doctorID = newVal[ // _item)
'DoctorID'] // doctorID = newVal[
}); // 'DoctorID']
}, // });
selectedItem: // },
getSelectedDoctor(model2), // selectedItem:
showSearchBox: true, // getSelectedDoctor(model2),
searchBoxDecoration: // showSearchBox: true,
InputDecoration( // // TODO Elham*2 fix
border: // // searchBoxDecoration:
OutlineInputBorder(), // // InputDecoration(
contentPadding: // // border:
EdgeInsets.fromLTRB( // // OutlineInputBorder(),
12, 12, 8, 0), // // contentPadding:
labelText: "Search Doctor", // // EdgeInsets.fromLTRB(
), // // 12, 12, 8, 0),
popupTitle: Container( // // labelText: "Search Doctor",
height: 50, // // ),
decoration: BoxDecoration( // popupTitle: Container(
color: Theme.of(context) // height: 50,
.primaryColorDark, // decoration: BoxDecoration(
borderRadius: // color: Theme.of(context)
BorderRadius.only( // .primaryColorDark,
topLeft: // borderRadius:
Radius.circular(20), // BorderRadius.only(
topRight: // topLeft:
Radius.circular(20), // Radius.circular(20),
), // topRight:
), // Radius.circular(20),
child: Center( // ),
child: Text( // ),
'', // child: Center(
style: TextStyle( // child: Text(
fontSize: 24, // '',
fontWeight: // style: TextStyle(
FontWeight.bold, // fontSize: 24,
color: Colors.white, // fontWeight:
), // FontWeight.bold,
), // color: Colors.white,
), // ),
), // ),
popupShape: // ),
RoundedRectangleBorder( // ),
borderRadius: // popupShape:
BorderRadius.only( // RoundedRectangleBorder(
topLeft: // borderRadius:
Radius.circular(24), // BorderRadius.only(
topRight: // topLeft:
Radius.circular(24), // Radius.circular(24),
), // topRight:
), // Radius.circular(24),
), // ),
) // ),
else // ),
SizedBox(), // )
], // else
) // SizedBox(),
// ],
// )
], ],
), ),
)), )),

@ -35,7 +35,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.8.2" version: "2.8.1"
autocomplete_textfield: autocomplete_textfield:
dependency: "direct main" dependency: "direct main"
description: description:
@ -154,7 +154,7 @@ packages:
name: characters name: characters
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.1.0"
charcode: charcode:
dependency: transitive dependency: transitive
description: description:
@ -769,7 +769,7 @@ packages:
name: matcher name: matcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.12.11" version: "0.12.10"
meta: meta:
dependency: transitive dependency: transitive
description: description:
@ -1173,7 +1173,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.3" version: "0.4.2"
timing: timing:
dependency: transitive dependency: transitive
description: description:
@ -1257,7 +1257,7 @@ packages:
name: vector_math name: vector_math
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.1" version: "2.1.0"
video_player: video_player:
dependency: transitive dependency: transitive
description: description:

Loading…
Cancel
Save