From 3cb9df2b5976ae7465c890740d2f5d5a452d9282 Mon Sep 17 00:00:00 2001 From: monsieurtanuki Date: Wed, 18 Sep 2024 15:48:27 +0200 Subject: [PATCH] fix: 5591 - added a call to initialize rive --- packages/smooth_app/lib/main.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/smooth_app/lib/main.dart b/packages/smooth_app/lib/main.dart index f2577ae069e..e9005326b92 100644 --- a/packages/smooth_app/lib/main.dart +++ b/packages/smooth_app/lib/main.dart @@ -13,6 +13,7 @@ import 'package:openfoodfacts/openfoodfacts.dart'; import 'package:permission_handler/permission_handler.dart'; import 'package:provider/provider.dart'; import 'package:provider/single_child_widget.dart'; +import 'package:rive/rive.dart'; import 'package:scanner_shared/scanner_shared.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:smooth_app/data_models/continuous_scan_model.dart'; @@ -65,6 +66,8 @@ Future launchSmoothApp({ required ScannerLabel scannerLabel, final bool screenshots = false, }) async { + unawaited(RiveFile.initialize()); + _screenshots = screenshots; GlobalVars.barcodeScanner = barcodeScanner;