Design and better descriptions for feedback dialog

This commit is contained in:
Elias Müller 2024-02-07 22:18:11 +01:00
parent 85c1ff0478
commit acb79bbc6f
3 changed files with 12 additions and 6 deletions

View File

@ -12,24 +12,30 @@ class _FeedbackDialogState extends State<FeedbackDialog> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AlertDialog( return AlertDialog(
title: const Text("Feedback"), title: const Text("Feedback"),
content: const Column( content: const Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Text("Bitte gib keine Daten wie z.B. Passwörter weiter."), Text("Feedback, Anregungen, Ideen, Fehler und Verbesserungen"),
SizedBox(height: 20), SizedBox(height: 10),
Text("Bitte gib keine geheimen Daten wie z.B. Passwörter weiter.", style: TextStyle(fontSize: 10)),
SizedBox(height: 10),
TextField( TextField(
autofocus: true,
decoration: InputDecoration( decoration: InputDecoration(
border: OutlineInputBorder(), border: OutlineInputBorder(),
label: Text("Feedback und Verbesserungen") label: Text("Feedback und Verbesserungen")
), ),
style: TextStyle(), // style: TextStyle(),
// expands: true,
minLines: 3, minLines: 3,
maxLines: 5, maxLines: 5,
) )
], ],
), ),
actions: [ actions: [
TextButton(onPressed: () => Navigator.of(context).pop(), child: const Text("Abbrechen")),
TextButton( TextButton(
onPressed: () { onPressed: () {

View File

@ -43,7 +43,7 @@ class Overhang extends StatelessWidget {
title: const Text("Du hast eine Idee?"), title: const Text("Du hast eine Idee?"),
subtitle: const Text("Fehler und Verbessungsvorschläge"), subtitle: const Text("Fehler und Verbessungsvorschläge"),
trailing: const Icon(Icons.arrow_right), trailing: const Icon(Icons.arrow_right),
onTap: () => showDialog(context: context, builder: (context) => const FeedbackDialog()), onTap: () => showDialog(context: context, barrierDismissible: false, builder: (context) => const FeedbackDialog()),
) )
], ],
), ),

View File

@ -238,8 +238,8 @@ class _SettingsState extends State<Settings> {
ListTile( ListTile(
leading: const CenteredLeading(Icon(Icons.code)), leading: const CenteredLeading(Icon(Icons.code)),
title: const Text("Quellcode der App"), title: const Text("Quellcode MarianumMobile/Client"),
subtitle: const Text("Open Source GNU GPL v3"), subtitle: const Text("open source GNU GPL v3"),
onTap: () => ConfirmDialog.openBrowser(context, "https://mhsl.eu/gitea/MarianumMobile/Client"), onTap: () => ConfirmDialog.openBrowser(context, "https://mhsl.eu/gitea/MarianumMobile/Client"),
), ),