diff --git a/packages/smooth_app/lib/data_models/onboarding_loader.dart b/packages/smooth_app/lib/data_models/onboarding_loader.dart index b80bdf25923..5ae6a7dfee4 100644 --- a/packages/smooth_app/lib/data_models/onboarding_loader.dart +++ b/packages/smooth_app/lib/data_models/onboarding_loader.dart @@ -2,7 +2,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:smooth_app/data_models/onboarding_data_product.dart'; import 'package:smooth_app/database/local_database.dart'; -import 'package:smooth_app/generic_lib/duration_constants.dart'; import 'package:smooth_app/generic_lib/loading_dialog.dart'; import 'package:smooth_app/pages/onboarding/onboarding_flow_navigator.dart'; @@ -19,30 +18,15 @@ class OnboardingLoader { final OnboardingPage page, final BuildContext context, ) async { - final AppLocalizations appLocalizations = AppLocalizations.of(context); switch (page) { case OnboardingPage.WELCOME: - final bool? downloaded = await LoadingDialog.run( + await LoadingDialog.run( context: context, - future: _downloadData(), + future: _downloadData().timeout(const Duration(seconds: 4)), title: AppLocalizations.of(context) .onboarding_welcome_loading_dialog_title, dismissible: false, ); - if (downloaded != true) { - if (!context.mounted) { - return; - } - ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - content: Text(appLocalizations.onboarding_welcome_loading_error), - duration: SnackBarDuration.short, - behavior: SnackBarBehavior.floating, - elevation: 0, - ), - ); - } - return; case OnboardingPage.NOT_STARTED: case OnboardingPage.HOME_PAGE: case OnboardingPage.HEALTH_CARD_EXAMPLE: diff --git a/packages/smooth_app/lib/l10n/app_en.arb b/packages/smooth_app/lib/l10n/app_en.arb index 0f0c2c3e221..6b926fb4e10 100644 --- a/packages/smooth_app/lib/l10n/app_en.arb +++ b/packages/smooth_app/lib/l10n/app_en.arb @@ -1220,10 +1220,6 @@ "@onboarding_welcome_loading_dialog_title": { "description": "Title for the onboarding loading dialog" }, - "onboarding_welcome_loading_error": "Seems like there is no example product in your language", - "@onboarding_welcome_loading_error": { - "description": "Seems like there is no example product in your language" - }, "product_list_your_ranking": "Your ranking", "@product_list_your_ranking": { "description": "Your ranking screen title"