|
|
@ -3,6 +3,7 @@ import 'package:diplomaticquarterapp/core/viewModels/feedback/feedback_view_mode
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.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/translations_delegate_base.dart';
|
|
|
|
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';
|
|
|
@ -31,6 +32,41 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
bool isShowListAppointHistory = true;
|
|
|
|
bool isShowListAppointHistory = true;
|
|
|
|
String message;
|
|
|
|
String message;
|
|
|
|
final formKey = GlobalKey<FormState>();
|
|
|
|
final formKey = GlobalKey<FormState>();
|
|
|
|
|
|
|
|
MessageType messageType = MessageType.NON;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String getSelected(BuildContext context) {
|
|
|
|
|
|
|
|
switch (messageType) {
|
|
|
|
|
|
|
|
case MessageType.ComplaintOnAnAppointment:
|
|
|
|
|
|
|
|
return TranslationBase.of(context).complainAppo;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case MessageType.ComplaintWithoutAppointment:
|
|
|
|
|
|
|
|
return TranslationBase.of(context).complainWithoutAppo;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case MessageType.Question:
|
|
|
|
|
|
|
|
return TranslationBase.of(context).question;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case MessageType.Compliment:
|
|
|
|
|
|
|
|
return TranslationBase.of(context).compliment;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case MessageType.Suggestion:
|
|
|
|
|
|
|
|
return TranslationBase.of(context).suggestion;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case MessageType.NON:
|
|
|
|
|
|
|
|
return TranslationBase.of(context).notClassified;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return TranslationBase.of(context).notClassified;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setMessageType(MessageType messageType) {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
this.messageType = messageType;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
@ -55,7 +91,6 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
TranslationBase.of(context).likeToHear,
|
|
|
|
TranslationBase.of(context).likeToHear,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
variant: 'body2Link',
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
@ -75,9 +110,8 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
|
|
|
|
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
model.getSelected(context),
|
|
|
|
getSelected(context),
|
|
|
|
variant: 'bodyText',
|
|
|
|
variant: 'bodyText',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
margin: EdgeInsets.only(left: 10,right: 10),
|
|
|
|
margin: EdgeInsets.only(left: 10,right: 10),
|
|
|
@ -91,7 +125,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (appointHistory != null && model.messageType ==
|
|
|
|
if (appointHistory != null && messageType ==
|
|
|
|
MessageType.ComplaintOnAnAppointment)
|
|
|
|
MessageType.ComplaintOnAnAppointment)
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
@ -167,12 +201,10 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (model.messageType ==
|
|
|
|
if (messageType == MessageType.ComplaintOnAnAppointment && model.appointHistoryList.length != 0 &&
|
|
|
|
MessageType.ComplaintOnAnAppointment &&
|
|
|
|
|
|
|
|
model.appointHistoryList.length != 0 &&
|
|
|
|
|
|
|
|
isShowListAppointHistory)
|
|
|
|
isShowListAppointHistory)
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: MediaQuery.of(context).size.height * 0.4,
|
|
|
|
height: model.appointHistoryList.length>2?MediaQuery.of(context).size.height * 0.25:MediaQuery.of(context).size.height * 0.15,
|
|
|
|
child: ListView.builder(
|
|
|
|
child: ListView.builder(
|
|
|
|
itemCount: model.appointHistoryList.length,
|
|
|
|
itemCount: model.appointHistoryList.length,
|
|
|
|
itemBuilder: (context, index) => InkWell(
|
|
|
|
itemBuilder: (context, index) => InkWell(
|
|
|
@ -285,7 +317,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
hintColor: Colors.black,
|
|
|
|
hintColor: Colors.black,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
validator: (value) {
|
|
|
|
validator: (value) {
|
|
|
|
if (value == null)
|
|
|
|
if (value.isEmpty)
|
|
|
|
return TranslationBase.of(context).emptySubject;
|
|
|
|
return TranslationBase.of(context).emptySubject;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
@ -303,7 +335,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
minLines: 13,
|
|
|
|
minLines: 13,
|
|
|
|
controller: messageController,
|
|
|
|
controller: messageController,
|
|
|
|
validator: (value) {
|
|
|
|
validator: (value) {
|
|
|
|
if (value == null)
|
|
|
|
if (value.isEmpty)
|
|
|
|
return TranslationBase.of(context).emptyMessage;
|
|
|
|
return TranslationBase.of(context).emptyMessage;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
@ -376,7 +408,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 45,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -396,14 +428,14 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
loading: model.state == ViewState.BusyLocal,
|
|
|
|
loading: model.state == ViewState.BusyLocal,
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
final form = formKey.currentState;
|
|
|
|
final form = formKey.currentState;
|
|
|
|
if (form.validate()) if (model.messageType != MessageType.NON)
|
|
|
|
if (form.validate()) if (messageType != MessageType.NON)
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.sendCOCItem(
|
|
|
|
.sendCOCItem(
|
|
|
|
title: titleController.text,
|
|
|
|
title: titleController.text,
|
|
|
|
attachment: images.length > 0 ? images[0] : "",
|
|
|
|
attachment: images.length > 0 ? images[0] : "",
|
|
|
|
details: messageController.text,
|
|
|
|
details: messageController.text,
|
|
|
|
cOCTypeName: getCOCName(model),
|
|
|
|
cOCTypeName: getCOCName(),
|
|
|
|
appointHistory: model.messageType ==
|
|
|
|
appointHistory:messageType ==
|
|
|
|
MessageType.ComplaintOnAnAppointment
|
|
|
|
MessageType.ComplaintOnAnAppointment
|
|
|
|
? appointHistory
|
|
|
|
? appointHistory
|
|
|
|
: null)
|
|
|
|
: null)
|
|
|
@ -414,7 +446,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
messageController.text = "";
|
|
|
|
messageController.text = "";
|
|
|
|
images = [];
|
|
|
|
images = [];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
model.setMessageType(MessageType.NON);
|
|
|
|
setMessageType(MessageType.NON);
|
|
|
|
AppToast.showSuccessToast(
|
|
|
|
AppToast.showSuccessToast(
|
|
|
|
message: TranslationBase.of(context).yourFeedback);
|
|
|
|
message: TranslationBase.of(context).yourFeedback);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -433,8 +465,8 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String getCOCName(FeedbackViewModel model) {
|
|
|
|
String getCOCName() {
|
|
|
|
switch (model.messageType) {
|
|
|
|
switch (messageType) {
|
|
|
|
case MessageType.ComplaintOnAnAppointment:
|
|
|
|
case MessageType.ComplaintOnAnAppointment:
|
|
|
|
return "1";
|
|
|
|
return "1";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -462,15 +494,18 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
showDialog(
|
|
|
|
showDialog(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
child: FeedbackTypeDialog(
|
|
|
|
child: FeedbackTypeDialog(
|
|
|
|
|
|
|
|
messageTypeDialog: messageType,
|
|
|
|
onValueSelected: (MessageType value) {
|
|
|
|
onValueSelected: (MessageType value) {
|
|
|
|
if (value == MessageType.ComplaintOnAnAppointment) {
|
|
|
|
if (value == MessageType.ComplaintOnAnAppointment) {
|
|
|
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
model.getPatentAppointmentHistory().then((value) {
|
|
|
|
model.getPatentAppointmentHistory().then((value) {
|
|
|
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
appointHistory = null;
|
|
|
|
appointHistory = null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
model.setMessageType(value);
|
|
|
|
setMessageType(value);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -478,14 +513,30 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
|
|
|
|
|
|
|
|
|
|
|
|
class FeedbackTypeDialog extends StatefulWidget {
|
|
|
|
class FeedbackTypeDialog extends StatefulWidget {
|
|
|
|
final Function(MessageType) onValueSelected;
|
|
|
|
final Function(MessageType) onValueSelected;
|
|
|
|
|
|
|
|
final MessageType messageTypeDialog;
|
|
|
|
|
|
|
|
|
|
|
|
const FeedbackTypeDialog({Key key, this.onValueSelected}) : super(key: key);
|
|
|
|
const FeedbackTypeDialog({Key key, this.onValueSelected, this.messageTypeDialog=MessageType.NON}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
State createState() => new FeedbackTypeDialogState();
|
|
|
|
State createState() => new FeedbackTypeDialogState();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MessageType messageTypeDialog = MessageType.NON;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setMessageDialogType(MessageType messageType) {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
messageTypeDialog = messageType;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
|
|
void initState() {
|
|
|
|
|
|
|
|
messageTypeDialog = widget.messageTypeDialog;
|
|
|
|
|
|
|
|
super.initState();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return BaseView<FeedbackViewModel>(
|
|
|
|
return BaseView<FeedbackViewModel>(
|
|
|
|
builder: (_, model, widge) => SimpleDialog(
|
|
|
|
builder: (_, model, widge) => SimpleDialog(
|
|
|
@ -507,16 +558,16 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () => model.setMessageDialogType(
|
|
|
|
onTap: () => setMessageDialogType(
|
|
|
|
MessageType.ComplaintOnAnAppointment),
|
|
|
|
MessageType.ComplaintOnAnAppointment),
|
|
|
|
child: ListTile(
|
|
|
|
child: ListTile(
|
|
|
|
title: Texts(TranslationBase.of(context).complainAppo),
|
|
|
|
title: Texts(TranslationBase.of(context).complainAppo),
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.ComplaintOnAnAppointment,
|
|
|
|
value: MessageType.ComplaintOnAnAppointment,
|
|
|
|
groupValue: model.messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
model.setMessageDialogType(value),
|
|
|
|
setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -531,16 +582,16 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () => model.setMessageDialogType(
|
|
|
|
onTap: () => setMessageDialogType(
|
|
|
|
MessageType.ComplaintWithoutAppointment),
|
|
|
|
MessageType.ComplaintWithoutAppointment),
|
|
|
|
child: ListTile(
|
|
|
|
child: ListTile(
|
|
|
|
title: Texts(TranslationBase.of(context).complainWithoutAppo),
|
|
|
|
title: Texts(TranslationBase.of(context).complainWithoutAppo),
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.ComplaintWithoutAppointment,
|
|
|
|
value: MessageType.ComplaintWithoutAppointment,
|
|
|
|
groupValue: model.messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
model.setMessageDialogType(value),
|
|
|
|
setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -556,15 +607,15 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () =>
|
|
|
|
onTap: () =>
|
|
|
|
model.setMessageDialogType(MessageType.Question),
|
|
|
|
setMessageDialogType(MessageType.Question),
|
|
|
|
child: ListTile(
|
|
|
|
child: ListTile(
|
|
|
|
title: Texts(TranslationBase.of(context).question),
|
|
|
|
title: Texts(TranslationBase.of(context).question),
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.Question,
|
|
|
|
value: MessageType.Question,
|
|
|
|
groupValue: model.messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
model.setMessageDialogType(value),
|
|
|
|
setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -580,15 +631,15 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () =>
|
|
|
|
onTap: () =>
|
|
|
|
model.setMessageDialogType(MessageType.Compliment),
|
|
|
|
setMessageDialogType(MessageType.Compliment),
|
|
|
|
child: ListTile(
|
|
|
|
child: ListTile(
|
|
|
|
title: Texts(TranslationBase.of(context).compliment),
|
|
|
|
title: Texts(TranslationBase.of(context).compliment),
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.Compliment,
|
|
|
|
value: MessageType.Compliment,
|
|
|
|
groupValue: model.messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
model.setMessageDialogType(value),
|
|
|
|
setMessageDialogType(value),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -604,15 +655,14 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () =>
|
|
|
|
onTap: () =>
|
|
|
|
model.setMessageDialogType(MessageType.Suggestion),
|
|
|
|
setMessageDialogType(MessageType.Suggestion),
|
|
|
|
child: ListTile(
|
|
|
|
child: ListTile(
|
|
|
|
title: Texts(TranslationBase.of(context).suggestion),
|
|
|
|
title: Texts(TranslationBase.of(context).suggestion),
|
|
|
|
leading: Radio(
|
|
|
|
leading: Radio(
|
|
|
|
value: MessageType.Suggestion,
|
|
|
|
value: MessageType.Suggestion,
|
|
|
|
groupValue: model.messageTypeDialog,
|
|
|
|
groupValue: messageTypeDialog,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
activeColor: Theme.of(context).primaryColor,
|
|
|
|
onChanged: (MessageType value) =>
|
|
|
|
onChanged: (MessageType value) => setMessageDialogType(value),
|
|
|
|
model.setMessageDialogType(value),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -660,7 +710,7 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
widget.onValueSelected(model.messageTypeDialog);
|
|
|
|
widget.onValueSelected(messageTypeDialog);
|
|
|
|
Navigator.pop(context);
|
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|