|
|
@ -5,7 +5,9 @@ import 'package:diplomaticquarterapp/core/viewModels/feedback/feedback_view_mode
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResultList.dart';
|
|
|
|
import 'package:diplomaticquarterapp/models/Appointments/AppoimentAllHistoryResultList.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/services/appointment_services/GetDoctorsList.dart';
|
|
|
|
import 'package:diplomaticquarterapp/services/robo_search/event_provider.dart';
|
|
|
|
import 'package:diplomaticquarterapp/services/robo_search/event_provider.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
@ -13,6 +15,7 @@ import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/avatar/large_avatar.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/avatar/large_avatar.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/bottom_options/BottomSheet.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/bottom_options/BottomSheet.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/doctor_card.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/StarRating.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/StarRating.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
@ -49,6 +52,8 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
var reconizedWord;
|
|
|
|
var reconizedWord;
|
|
|
|
var event = RobotProvider();
|
|
|
|
var event = RobotProvider();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<AppoitmentAllHistoryResultList> appoList = [];
|
|
|
|
|
|
|
|
|
|
|
|
String getSelected(BuildContext context) {
|
|
|
|
String getSelected(BuildContext context) {
|
|
|
|
switch (messageType) {
|
|
|
|
switch (messageType) {
|
|
|
|
case MessageType.ComplaintOnAnAppointment:
|
|
|
|
case MessageType.ComplaintOnAnAppointment:
|
|
|
@ -111,7 +116,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
TranslationBase.of(context).likeToHear,
|
|
|
|
TranslationBase.of(context).likeToHear,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 23 / 16),
|
|
|
|
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 23 / 16),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 21),
|
|
|
|
SizedBox(height: 21),
|
|
|
@ -159,184 +164,50 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
isShowListAppointHistory = true;
|
|
|
|
isShowListAppointHistory = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: DoctorCard(
|
|
|
|
// margin: EdgeInsets.all(8.0),
|
|
|
|
onTap: null,
|
|
|
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)),
|
|
|
|
isInOutPatient: appointHistory.isInOutPatient,
|
|
|
|
child: Row(
|
|
|
|
name: appointHistory.doctorTitle + " " + appointHistory.doctorNameObj,
|
|
|
|
children: <Widget>[
|
|
|
|
// billNo: _appointmentResult.invoiceNo,
|
|
|
|
Container(
|
|
|
|
profileUrl: appointHistory.doctorImageURL,
|
|
|
|
width: projectViewModel.isArabic ? 27 : 20,
|
|
|
|
subName: appointHistory.projectName,
|
|
|
|
height: projectViewModel.isArabic ? 105 : 90,
|
|
|
|
isLiveCareAppointment: appointHistory.isLiveCareAppointment,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
date: DateUtil.convertStringToDate(appointHistory.appointmentDate),
|
|
|
|
//Colors.red[900] Color(0xff404545)
|
|
|
|
rating: appointHistory.actualDoctorRate + 0.0,
|
|
|
|
color: appointHistory.isLiveCareAppointment
|
|
|
|
appointmentTime: appointHistory.startTime.substring(0, 5),
|
|
|
|
? Color(0xff404545)
|
|
|
|
|
|
|
|
: !appointHistory.isInOutPatient
|
|
|
|
|
|
|
|
? Colors.red[900]
|
|
|
|
|
|
|
|
: Theme.of(context).primaryColor,
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
|
|
|
topLeft: projectViewModel.isArabic ? Radius.circular(0) : Radius.circular(8),
|
|
|
|
|
|
|
|
bottomLeft: projectViewModel.isArabic ? Radius.circular(0) : Radius.circular(8),
|
|
|
|
|
|
|
|
topRight: projectViewModel.isArabic ? Radius.circular(8) : Radius.circular(0),
|
|
|
|
|
|
|
|
bottomRight: projectViewModel.isArabic ? Radius.circular(8) : Radius.circular(0),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: RotatedBox(
|
|
|
|
|
|
|
|
quarterTurns: 3,
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
appointHistory.isLiveCareAppointment
|
|
|
|
|
|
|
|
? TranslationBase.of(context).liveCare.toUpperCase()
|
|
|
|
|
|
|
|
: !appointHistory.isInOutPatient
|
|
|
|
|
|
|
|
? TranslationBase.of(context).inPatient.toUpperCase()
|
|
|
|
|
|
|
|
: TranslationBase.of(context).outpatient.toUpperCase(),
|
|
|
|
|
|
|
|
style: TextStyle(color: Colors.white, fontSize: 12),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 4,
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(10.0),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: LargeAvatar(
|
|
|
|
|
|
|
|
name: appointHistory.doctorNameObj,
|
|
|
|
|
|
|
|
url: appointHistory.doctorImageURL,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 4,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
appointHistory.doctorNameObj,
|
|
|
|
|
|
|
|
bold: true,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
DateUtil.getMonthDayYearDateFormatted(DateUtil.convertStringToDate(appointHistory.appointmentDate)),
|
|
|
|
|
|
|
|
variant: 'caption3',
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
StarRating(totalAverage: appointHistory.doctorRate.toDouble(), forceStars: true),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: Icon(
|
|
|
|
|
|
|
|
Icons.arrow_forward,
|
|
|
|
|
|
|
|
size: 15,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (messageType == MessageType.ComplaintOnAnAppointment && model.appointHistoryList.length != 0 && isShowListAppointHistory)
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
|
|
|
if (messageType == MessageType.ComplaintOnAnAppointment && appoList.length != 0 && isShowListAppointHistory)
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: model.appointHistoryList.length > 2 ? MediaQuery.of(context).size.height * 0.25 : MediaQuery.of(context).size.height * 0.15,
|
|
|
|
margin: EdgeInsets.only(bottom: 10.0),
|
|
|
|
|
|
|
|
height: appoList.length > 2 ? MediaQuery.of(context).size.height * 0.35 : MediaQuery.of(context).size.height * 0.17,
|
|
|
|
child: ListView.builder(
|
|
|
|
child: ListView.builder(
|
|
|
|
itemCount: model.appointHistoryList.length,
|
|
|
|
itemCount: appoList.length,
|
|
|
|
itemBuilder: (context, index) => InkWell(
|
|
|
|
itemBuilder: (context, index) => InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
appointHistory = model.appointHistoryList[index];
|
|
|
|
appointHistory = appoList[index];
|
|
|
|
isShowListAppointHistory = false;
|
|
|
|
isShowListAppointHistory = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: DoctorCard(
|
|
|
|
margin: EdgeInsets.only(left: 8, right: 8),
|
|
|
|
onTap: null,
|
|
|
|
color: Colors.white,
|
|
|
|
isInOutPatient: appoList[index].isInOutPatient,
|
|
|
|
child: Column(
|
|
|
|
name: appoList[index].doctorTitle + " " + appoList[index].doctorNameObj,
|
|
|
|
children: <Widget>[
|
|
|
|
profileUrl: appoList[index].doctorImageURL,
|
|
|
|
Row(
|
|
|
|
subName: appoList[index].projectName,
|
|
|
|
children: <Widget>[
|
|
|
|
isLiveCareAppointment: appoList[index].isLiveCareAppointment,
|
|
|
|
Expanded(
|
|
|
|
date: DateUtil.convertStringToDate(appoList[index].appointmentDate),
|
|
|
|
flex: 4,
|
|
|
|
rating: appoList[index].actualDoctorRate + 0.0,
|
|
|
|
child: Column(
|
|
|
|
appointmentTime: appoList[index].startTime.substring(0, 5),
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(10.0),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: LargeAvatar(
|
|
|
|
|
|
|
|
name: model.appointHistoryList[index].doctorNameObj,
|
|
|
|
|
|
|
|
url: model.appointHistoryList[index].doctorImageURL,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 4,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
model.appointHistoryList[index].doctorNameObj,
|
|
|
|
|
|
|
|
bold: true,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Texts(
|
|
|
|
|
|
|
|
DateUtil.getMonthDayYearDateFormatted(DateUtil.convertStringToDate(model.appointHistoryList[index].appointmentDate)),
|
|
|
|
|
|
|
|
variant: 'caption3',
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
StarRating(totalAverage: model.appointHistoryList[index].doctorRate.toDouble(), forceStars: true),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: Icon(
|
|
|
|
|
|
|
|
Icons.arrow_forward,
|
|
|
|
|
|
|
|
size: 15,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 5,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Divider(
|
|
|
|
|
|
|
|
height: 0.5,
|
|
|
|
|
|
|
|
color: Colors.grey[400],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
inputWidget(TranslationBase.of(context).subject, "xxxxxxxx", titleController),
|
|
|
|
inputWidget(TranslationBase.of(context).subject, "", titleController),
|
|
|
|
SizedBox(height: 12),
|
|
|
|
SizedBox(height: 12),
|
|
|
|
inputWidget(TranslationBase.of(context).message, "xxxxxxxx", messageController, lines: 11, suffixTap: () {
|
|
|
|
inputWidget(TranslationBase.of(context).message, "", messageController, lines: 11, suffixTap: () {
|
|
|
|
openSpeechReco();
|
|
|
|
openSpeechReco();
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
SizedBox(height: 12),
|
|
|
|
SizedBox(height: 12),
|
|
|
@ -492,7 +363,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
TextField(
|
|
|
|
TextField(
|
|
|
|
enabled: isEnable,
|
|
|
|
enabled: isEnable,
|
|
|
|
scrollPadding: EdgeInsets.zero,
|
|
|
|
scrollPadding: EdgeInsets.zero,
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
controller: _controller,
|
|
|
|
controller: _controller,
|
|
|
|
maxLines: lines,
|
|
|
|
maxLines: lines,
|
|
|
|
onChanged: (value) => {setState(() {})},
|
|
|
|
onChanged: (value) => {setState(() {})},
|
|
|
@ -515,19 +386,6 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
suffixIconConstraints: BoxConstraints(minWidth: 50),
|
|
|
|
suffixIconConstraints: BoxConstraints(minWidth: 50),
|
|
|
|
suffixIcon: suffixTap == null ? null : IconButton(icon: Icon(Icons.mic, color: Color(0xff2E303A)), onPressed: suffixTap),
|
|
|
|
suffixIcon: suffixTap == null ? null : IconButton(icon: Icon(Icons.mic, color: Color(0xff2E303A)), onPressed: suffixTap),
|
|
|
|
// prefixIconConstraints: BoxConstraints(minWidth: 50),
|
|
|
|
|
|
|
|
// prefixIcon: suffix == null
|
|
|
|
|
|
|
|
// ? null
|
|
|
|
|
|
|
|
// : Text(
|
|
|
|
|
|
|
|
// "+" + suffix,
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
|
|
|
// fontSize: 14,
|
|
|
|
|
|
|
|
// height: 21 / 14,
|
|
|
|
|
|
|
|
// fontWeight: FontWeight.w500,
|
|
|
|
|
|
|
|
// color: Color(0xff2E303A),
|
|
|
|
|
|
|
|
// letterSpacing: -0.56,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
border: InputBorder.none,
|
|
|
|
border: InputBorder.none,
|
|
|
|
focusedBorder: InputBorder.none,
|
|
|
|
focusedBorder: InputBorder.none,
|
|
|
@ -570,19 +428,39 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
|
|
|
|
|
|
|
|
// Show Dialog function
|
|
|
|
// Show Dialog function
|
|
|
|
void confirmBox(FeedbackViewModel model) {
|
|
|
|
void confirmBox(FeedbackViewModel model) {
|
|
|
|
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
showDialog(
|
|
|
|
showDialog(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
child: FeedbackTypeDialog(
|
|
|
|
child: FeedbackTypeDialog(
|
|
|
|
messageTypeDialog: messageType,
|
|
|
|
messageTypeDialog: messageType,
|
|
|
|
onValueSelected: (MessageType value) {
|
|
|
|
onValueSelected: (MessageType value) {
|
|
|
|
if (value == MessageType.ComplaintOnAnAppointment) {
|
|
|
|
if (value == MessageType.ComplaintOnAnAppointment) {
|
|
|
|
|
|
|
|
appoList.clear();
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
model.getPatentAppointmentHistory().then((value) {
|
|
|
|
service.getPatientAppointmentHistory(false, context, isForCOC: true).then((res) {
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
appointHistory = null;
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
|
|
|
|
if (res['AppoimentAllHistoryResultList'].length != 0) {
|
|
|
|
|
|
|
|
res['AppoimentAllHistoryResultList'].forEach((v) {
|
|
|
|
|
|
|
|
appoList.add(new AppoitmentAllHistoryResultList.fromJson(v));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
appointHistory = null;
|
|
|
|
|
|
|
|
isShowListAppointHistory = true;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|
|
|
// print(err);
|
|
|
|
|
|
|
|
// AppToast.showErrorToast(message: err);
|
|
|
|
|
|
|
|
// Navigator.of(context).pop();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
isShowListAppointHistory = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setMessageType(value);
|
|
|
|
setMessageType(value);
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -694,7 +572,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.NON,
|
|
|
|
value: MessageType.NON,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: CustomColors.accentColor,
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -716,7 +594,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.ComplaintOnAnAppointment,
|
|
|
|
value: MessageType.ComplaintOnAnAppointment,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: CustomColors.accentColor,
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -738,7 +616,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.ComplaintWithoutAppointment,
|
|
|
|
value: MessageType.ComplaintWithoutAppointment,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: CustomColors.accentColor,
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -760,7 +638,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.Question,
|
|
|
|
value: MessageType.Question,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: CustomColors.accentColor,
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -782,7 +660,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.Compliment,
|
|
|
|
value: MessageType.Compliment,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: CustomColors.accentColor,
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -804,7 +682,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.Suggestion,
|
|
|
|
value: MessageType.Suggestion,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: CustomColors.accentColor,
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -837,7 +715,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
TranslationBase.of(context).cancel,
|
|
|
|
TranslationBase.of(context).cancel,
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
color: CustomColors.accentColor,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|