From 2623e97718a97d0eb85a7d301b3bee29175d5ea3 Mon Sep 17 00:00:00 2001 From: 98spag Date: Fri, 16 Jun 2023 11:46:32 +0200 Subject: [PATCH] feat: remove web componetns --- lib/android/components/form/form_builder.dart | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) 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"), )),