develop-biggerFeedbackWidget #51
@@ -20,6 +20,84 @@ class _FeedbackDialogState extends State<FeedbackDialog> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) {
 | 
					  Widget build(BuildContext context) {
 | 
				
			||||||
 | 
					    return Scaffold(
 | 
				
			||||||
 | 
					      appBar: AppBar(
 | 
				
			||||||
 | 
					        title: const Text('Feedback'),
 | 
				
			||||||
 | 
					      ),
 | 
				
			||||||
 | 
					      body: Column(
 | 
				
			||||||
 | 
					        mainAxisSize: MainAxisSize.max,
 | 
				
			||||||
 | 
					        children: [
 | 
				
			||||||
 | 
					          const SizedBox(height: 5),
 | 
				
			||||||
 | 
					          const Text('Feedback, Anregungen, Ideen, Fehler und Verbesserungen', textAlign: TextAlign.center),
 | 
				
			||||||
 | 
					          const SizedBox(height: 15),
 | 
				
			||||||
 | 
					          const Text('Bitte gib keine geheimen Daten wie z.B. Passwörter weiter.', textAlign: TextAlign.center, style: TextStyle(fontSize: 11)),
 | 
				
			||||||
 | 
					          const SizedBox(height: 20),
 | 
				
			||||||
 | 
					          Padding(
 | 
				
			||||||
 | 
					            padding: const EdgeInsets.all(10),
 | 
				
			||||||
 | 
					            child: TextField(
 | 
				
			||||||
 | 
					              controller: _feedbackInput,
 | 
				
			||||||
 | 
					              autofocus: true,
 | 
				
			||||||
 | 
					              decoration: const InputDecoration(
 | 
				
			||||||
 | 
					                  border: OutlineInputBorder(),
 | 
				
			||||||
 | 
					                  label: Text('Feedback und Verbesserungen')
 | 
				
			||||||
 | 
					              ),
 | 
				
			||||||
 | 
					              // style: TextStyle(),
 | 
				
			||||||
 | 
					              // expands: true,
 | 
				
			||||||
 | 
					              minLines: 4,
 | 
				
			||||||
 | 
					              maxLines: 7,
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
 | 
					          ),
 | 
				
			||||||
 | 
					          Visibility(
 | 
				
			||||||
 | 
					              visible: _error != null,
 | 
				
			||||||
 | 
					              child: Text('Senden fehlgeschlagen: $_error', style: const TextStyle(color: Colors.red)),
 | 
				
			||||||
 | 
					          ),
 | 
				
			||||||
| 
						
							
	
	
	
	
	
	
	
	 
					
					Pupsi marked this conversation as resolved
					
				 
				 | 
				|||||||
 | 
					          Padding(
 | 
				
			||||||
 | 
					            padding: const EdgeInsets.only(right: 20),
 | 
				
			||||||
 | 
					            child: Row(
 | 
				
			||||||
 | 
					              mainAxisAlignment: MainAxisAlignment.end,
 | 
				
			||||||
 | 
					              children: [
 | 
				
			||||||
 | 
					                TextButton(
 | 
				
			||||||
 | 
					                  onPressed: () async {
 | 
				
			||||||
 | 
					                    AddFeedback(
 | 
				
			||||||
 | 
					                        AddFeedbackParams(
 | 
				
			||||||
 | 
					                            user: AccountData().getUserSecret(),
 | 
				
			||||||
 | 
					                            feedback: _feedbackInput.text,
 | 
				
			||||||
 | 
					                            appVersion: int.parse((await PackageInfo.fromPlatform()).buildNumber)
 | 
				
			||||||
 | 
					                        )
 | 
				
			||||||
 | 
					                    ).run().then((value) {
 | 
				
			||||||
 | 
					                      Navigator.of(context).pop();
 | 
				
			||||||
 | 
					                      InfoDialog.show(context, 'Danke für dein Feedback!');
 | 
				
			||||||
 | 
					                    }).catchError((error, trace) {
 | 
				
			||||||
 | 
					                      setState(() {
 | 
				
			||||||
 | 
					                        _error = error.toString();
 | 
				
			||||||
 | 
					                      });
 | 
				
			||||||
 | 
					                    });
 | 
				
			||||||
 | 
					                  },
 | 
				
			||||||
| 
						
							
	
	
	
	
	
	
	
	 
					
					Pupsi marked this conversation as resolved
					
						
						
							Outdated
						
					
				 
				
				
					
						MineTec
						commented  
			
		bitte hier nochmal auf das Design achten, du kannst einen offline betrieb im emulator mithilfe des flugmodus in der Benachrichtigungsleiste simulieren bitte hier nochmal auf das Design achten, du kannst einen offline betrieb im emulator mithilfe des flugmodus in der Benachrichtigungsleiste simulieren
 
			
			
		 | 
				|||||||
 | 
					                  child: const Text('Senden'),
 | 
				
			||||||
 | 
					                )
 | 
				
			||||||
 | 
					              ]
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
 | 
					          )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
 | 
					      ),
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /*
 | 
				
			||||||
 | 
					    return Scaffold(
 | 
				
			||||||
 | 
					      appBar: AppBar(
 | 
				
			||||||
 | 
					        title: const Text('Raumplan'),
 | 
				
			||||||
 | 
					      ),
 | 
				
			||||||
 | 
					      body: PhotoView(
 | 
				
			||||||
 | 
					        imageProvider: Image.asset('assets/img/raumplan.jpg').image,
 | 
				
			||||||
 | 
					        minScale: 0.5,
 | 
				
			||||||
 | 
					        maxScale: 2.0,
 | 
				
			||||||
 | 
					        backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.background),
 | 
				
			||||||
 | 
					      ),
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /*
 | 
				
			||||||
    return AlertDialog(
 | 
					    return AlertDialog(
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      title: const Text('Feedback'),
 | 
					      title: const Text('Feedback'),
 | 
				
			||||||
@@ -74,5 +152,6 @@ class _FeedbackDialogState extends State<FeedbackDialog> {
 | 
				
			|||||||
        )
 | 
					        )
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -74,7 +74,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, barrierDismissible: false, builder: (context) => const FeedbackDialog()),
 | 
					            onTap: () => pushScreen(context, withNavBar: false, screen: const FeedbackDialog()),
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user
	
?