diff --git a/lib/android/components/form/form_builder.dart b/lib/android/components/form/form_builder.dart index 7efd175..666051c 100644 --- a/lib/android/components/form/form_builder.dart +++ b/lib/android/components/form/form_builder.dart @@ -1,10 +1,7 @@ import 'package:ernaehrung/android/components/form/form_builder_text_field_component.dart'; -import 'package:ernaehrung/web/component/today.dart'; -import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_form_builder/flutter_form_builder.dart'; import 'package:hive/hive.dart'; -import '../../../web/web_app.dart'; import '../../models/form_builder.dart'; import '../../models/user.dart'; @@ -160,19 +157,12 @@ class _FormBuilderComponentState extends State { int.parse(formKey.currentState?.fields['kalorien']?.value) )); } - - - if (kIsWeb) { - Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context) => const HomeScreen())); - } - else{ - Future.delayed( - const Duration(seconds: 2), - () => Navigator.of(context) - .pushNamedAndRemoveUntil('/navigation', (Route route) - => false) - ); - } + Future.delayed( + const Duration(seconds: 2), + () => Navigator.of(context) + .pushNamedAndRemoveUntil('/navigation', (Route route) + => false) + ); }, child: const Text("Eingaben bestätigen"), )),