Erweiterungen
This commit is contained in:
1 parent
955d7b3cb4
commit
e9811da904
25 files changed
+1505
-128
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:stadtbote/tools/app_localizations.dart';
|
||||
import 'package:stadtbote/tools/util.dart';
|
||||
|
||||
showZipPopup(BuildContext context, String text, String buttonText,
|
||||
@@ -55,7 +56,7 @@ showZipPopup(BuildContext context, String text, String buttonText,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold)),
|
||||
const SizedBox(height: 20),
|
||||
Util.getDefaultTextField('Postleitzahl',
|
||||
Util.getDefaultTextField('zip'.tr,
|
||||
formatter: [
|
||||
FilteringTextInputFormatter.digitsOnly,
|
||||
LengthLimitingTextInputFormatter(5),
|
||||
@@ -89,11 +90,11 @@ bool _checkInput(BuildContext context, String input) {
|
||||
String message = '';
|
||||
|
||||
if (input.length != 5) {
|
||||
message += 'Bitte geben Sie eine fünfstellige Postleitzahl ein';
|
||||
message += 'enter_zip'.tr;
|
||||
}
|
||||
|
||||
if (message.isNotEmpty) {
|
||||
showAlertDialog('Fehler', message);
|
||||
showAlertDialog('error'.tr, message);
|
||||
}
|
||||
|
||||
return message.isEmpty;
|
||||
|
||||
Reference in new issue
Block a user