diff --git a/lib/bootstrap.dart b/lib/bootstrap.dart index eee7d23..f9c05ec 100644 --- a/lib/bootstrap.dart +++ b/lib/bootstrap.dart @@ -1,6 +1,5 @@ import 'dart:async'; -import 'package:device_preview_screenshot/device_preview_screenshot.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_dotenv/flutter_dotenv.dart'; @@ -55,16 +54,7 @@ Future bootstrap(Widget Function() builder) async { SystemUiOverlayTheme.setPortraitOrientation(); - runApp( - DevicePreview( - enabled: false, - tools: const [ - ...DevicePreview.defaultTools, - DevicePreviewScreenshot(), - ], - builder: (context) => builder(), - ), - ); + runApp(builder()); await NotificationService.initNotifications(); }, (error, stackTrace) => logE(error.toString(), stackTrace: stackTrace), diff --git a/lib/my_app.dart b/lib/my_app.dart index 0e199a3..cf84b1c 100644 --- a/lib/my_app.dart +++ b/lib/my_app.dart @@ -1,4 +1,3 @@ -import 'package:device_preview/device_preview.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart' show BlocProvider, MultiBlocProvider; @@ -40,10 +39,8 @@ class MyApp extends StatelessWidget { ), ], child: MaterialApp( - locale: DevicePreview.locale(context), - builder: DevicePreview.appBuilder, - debugShowCheckedModeBanner: false, title: 'Papa Burger', + debugShowCheckedModeBanner: false, theme: AppTheme.lightTheme, routes: Routes.routes, ), diff --git a/pubspec.lock b/pubspec.lock index a2b9f5b..e7ac6d0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -337,30 +337,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.7.10" - device_frame: - dependency: transitive - description: - name: device_frame - sha256: d5b4541a8755a36ac50b6605200e51db6d264438a38f327aec2ce31870e49885 - url: "https://pub.dev" - source: hosted - version: "1.0.0" - device_preview: - dependency: "direct main" - description: - name: device_preview - sha256: a9b78972be59eebb0b96599c2c15b82239ddd4cb7d8e7f177be6ca910a397955 - url: "https://pub.dev" - source: hosted - version: "1.0.0" - device_preview_screenshot: - dependency: "direct main" - description: - name: device_preview_screenshot - sha256: c79f185e155c0ed5d97b4e1afff6df181c2045fe28c7414c95f0b46307c549e6 - url: "https://pub.dev" - source: hosted - version: "1.0.0" dio: dependency: "direct main" description: @@ -510,11 +486,6 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.0+1" - flutter_localizations: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" flutter_plugin_android_lifecycle: dependency: transitive description: @@ -565,14 +536,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.4.1" - freezed_annotation: - dependency: transitive - description: - name: freezed_annotation - sha256: "1be037f901137bf2b9a0c309e9bf2694d6ec77687645211218191ade4f41a4b8" - url: "https://pub.dev" - source: hosted - version: "1.1.0" frontend_server_client: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 67d9a5f..4cadc00 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,8 +15,6 @@ dependencies: collection: ^1.18.0 connectivity_plus: ^5.0.2 cupertino_icons: ^1.0.6 - device_preview: ">=0.7.0 <1.1.0" - device_preview_screenshot: ^1.0.0 dio: ^5.4.1 equatable: ^2.0.5 faker: ^2.1.0