PAP-625: add option “not classified”.

merge-update-with-lab-changes
Elham Rababah 5 years ago
parent 6e7f62ca21
commit 96117fd191

@ -410,7 +410,7 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
), ),
)), )),
SizedBox( SizedBox(
height: 45, height: 100,
), ),
], ],
), ),
@ -418,14 +418,15 @@ class _SendFeedbackPageState extends State<SendFeedbackPage> {
), ),
), ),
bottomSheet: Container( bottomSheet: Container(
height: MediaQuery.of(context).size.height * 0.09, height: MediaQuery.of(context).size.height * 0.12,
width: double.infinity, width: double.infinity,
padding: EdgeInsets.all(15.0), padding: EdgeInsets.all(15.0),
child: Center( child: Center(
child: Container( child: Container(
height: MediaQuery.of(context).size.height * 0.8, height: MediaQuery.of(context).size.height * 0.1,
child: SecondaryButton( child: SecondaryButton(
label: TranslationBase.of(context).send, label: TranslationBase.of(context).send,
textColor: Colors.white,
disabled: (titleController.text.toString().isEmpty || messageController.text.toString().isEmpty|| messageType == MessageType.NON), disabled: (titleController.text.toString().isEmpty || messageController.text.toString().isEmpty|| messageType == MessageType.NON),
onTap: () { onTap: () {
final form = formKey.currentState; final form = formKey.currentState;
@ -556,6 +557,30 @@ class FeedbackTypeDialogState extends State<FeedbackTypeDialog> {
height: 2.5, height: 2.5,
color: Colors.grey[500], color: Colors.grey[500],
), ),
Row(
children: <Widget>[
Expanded(
flex: 1,
child: InkWell(
onTap: () => setMessageDialogType(
MessageType.NON),
child: ListTile(
title: Texts(TranslationBase.of(context).notClassified),
leading: Radio(
value: MessageType.NON,
groupValue: messageTypeDialog,
activeColor: Theme.of(context).primaryColor,
onChanged: (MessageType value) =>
setMessageDialogType(value),
),
),
),
)
],
),
SizedBox(
height: 5.0,
),
Row( Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(

Loading…
Cancel
Save