in frontend/frontend-flutter/lib/screens/bot.dart [1103:1179]
void showFeedbackDialog() {
showDialog<void>(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text("Please rate this answer"),
content: ConstrainedBox(
constraints: BoxConstraints(maxHeight: 260.0),
child: Container(
//width: screenSize!.width / 2,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
ElevatedButton(
child: Text("Good answer",
style: TextStyle(color: Colors.white)),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.green,
elevation: 0,
),
onPressed: () {},
),
SizedBox(width: 30),
ElevatedButton(
child: Text("Partial answer",
style: TextStyle(color: Colors.white)),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.orange,
elevation: 0,
),
onPressed: () {},
),
SizedBox(width: 30),
ElevatedButton(
child: Text("Incorrect answer",
style: TextStyle(color: Colors.white)),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.red,
elevation: 0,
),
onPressed: () {},
),
],
),
SizedBox(height: 50),
TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText:
'Please provide additionnal feedback (optional)',
),
maxLines: null,
minLines: 5,
),
]),
),
),
),
//Text(DicInfoExtractedMap.toString(),),
actions: <Widget>[
TextButton(
style: TextButton.styleFrom(
textStyle: Theme.of(context).textTheme.labelLarge,
),
child: const Text('Submit'),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
},
);
}