From a9616f510cf2ca8c20cd798044167b18f17e2d99 Mon Sep 17 00:00:00 2001 From: Christian Ribeaud Date: Mon, 1 May 2023 09:40:08 +0200 Subject: [PATCH] from is no longer required --- frontend/lib/main.dart | 15 +-------------- frontend/lib/results.dart | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/frontend/lib/main.dart b/frontend/lib/main.dart index c0edf0a..9a115fc 100644 --- a/frontend/lib/main.dart +++ b/frontend/lib/main.dart @@ -58,20 +58,13 @@ class FedlexFormState extends State { Padding( padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0), child: Text( - "Inkrafttretten", + "Inkrafttreten", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold), ), ), Padding( padding: const EdgeInsets.symmetric(horizontal: 8.0), child: TextFormField( - // The validator receives the text that the user has entered. - validator: (value) { - if (value == null || value.isEmpty) { - return 'Bitte ein Datum eingeben (JJJJ-MM-TT)'; - } - return null; - }, controller: fromController, decoration: const InputDecoration( label: Text.rich( @@ -82,12 +75,6 @@ class FedlexFormState extends State { 'Von', ), ), - WidgetSpan( - child: Text( - '*', - style: TextStyle(color: Colors.red), - ), - ), ], ), ), diff --git a/frontend/lib/results.dart b/frontend/lib/results.dart index 8c53257..9a3d5cb 100644 --- a/frontend/lib/results.dart +++ b/frontend/lib/results.dart @@ -55,7 +55,7 @@ class _ResultsPageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: const Text('Results')), + appBar: AppBar(title: const Text('Ergebnisse')), body: SingleChildScrollView( child: Container( child: _buildPanel(),