Erweiterungen
This commit is contained in:
1 parent
955d7b3cb4
commit
e9811da904
25 files changed
+1505
-128
No files matched your search
@@ -6,6 +6,7 @@ import 'package:stadtbote/messages/pop_content_view_message.dart';
|
||||
import 'package:stadtbote/network_messages/set_desired_zip_message.dart';
|
||||
import 'package:stadtbote/tools/messages/publish_payload_message.dart';
|
||||
|
||||
import '../tools/app_localizations.dart';
|
||||
import '../tools/constants.dart';
|
||||
import '../tools/util.dart';
|
||||
|
||||
@@ -43,7 +44,7 @@ class _SetDesiredZipPageState extends State<SetDesiredZipPage>
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Column(children: [
|
||||
const Text("Bitte geben Sie Ihr Wunschziel für heute ein"),
|
||||
Text('enter_desired_zip'.tr),
|
||||
const SizedBox(height: 20),
|
||||
Row(
|
||||
mainAxisAlignment:
|
||||
@@ -67,7 +68,7 @@ class _SetDesiredZipPageState extends State<SetDesiredZipPage>
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
getDefaultButton(
|
||||
'Übernehmen',
|
||||
'apply'.tr,
|
||||
() => {
|
||||
if (textEditController.text.isEmpty ||
|
||||
textEditController.text.length == 5)
|
||||
@@ -82,8 +83,8 @@ class _SetDesiredZipPageState extends State<SetDesiredZipPage>
|
||||
}
|
||||
else
|
||||
{
|
||||
showAlertDialog("Fehler",
|
||||
"Das Feld muss leer sein, oder es müssen fünf Zahlen eingegeben werden")
|
||||
showAlertDialog('error'.tr,
|
||||
'zip_validation_error'.tr)
|
||||
}
|
||||
})
|
||||
]),
|
||||
|
||||
Reference in new issue
Block a user