Skip to content

Commit

Permalink
chore: removed device_preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Gambley1 committed May 21, 2024
1 parent 80ae39f commit e0a473a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 54 deletions.
12 changes: 1 addition & 11 deletions lib/bootstrap.dart
Original file line number Diff line number Diff line change
@@ -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';

Check warning on line 5 in lib/bootstrap.dart

View workflow job for this annotation

GitHub Actions / test

Unknown word (dotenv)

Check warning on line 5 in lib/bootstrap.dart

View workflow job for this annotation

GitHub Actions / test

Unknown word (dotenv)

Check warning on line 5 in lib/bootstrap.dart

View workflow job for this annotation

GitHub Actions / test

Unknown word (dotenv)

Check warning on line 5 in lib/bootstrap.dart

View workflow job for this annotation

GitHub Actions / test

Unknown word (dotenv)
Expand Down Expand Up @@ -55,16 +54,7 @@ Future<void> 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),
Expand Down
5 changes: 1 addition & 4 deletions lib/my_app.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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,
),
Expand Down
37 changes: 0 additions & 37 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0a473a

Please sign in to comment.