diff --git a/lib/main.dart b/lib/main.dart index 2f584e3..11c14fb 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:quiz_app/app/app.dart'; import 'package:quiz_app/core/utils/logger.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; void main() { runZonedGuarded(() async { @@ -18,6 +19,8 @@ void main() { WidgetsFlutterBinding.ensureInitialized(); await EasyLocalization.ensureInitialized(); + WakelockPlus.enable(); + runApp( EasyLocalization( supportedLocales: [ diff --git a/pubspec.lock b/pubspec.lock index ec58578..f1c0492 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -365,6 +365,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.0" + package_info_plus: + dependency: transitive + description: + name: package_info_plus + sha256: "7976bfe4c583170d6cdc7077e3237560b364149fcd268b5f53d95a991963b191" + url: "https://pub.dev" + source: hosted + version: "8.3.0" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + sha256: "6c935fb612dff8e3cc9632c2b301720c77450a126114126ffaafe28d2e87956c" + url: "https://pub.dev" + source: hosted + version: "3.2.0" path: dependency: transitive description: @@ -666,6 +682,22 @@ packages: url: "https://pub.dev" source: hosted version: "14.3.0" + wakelock_plus: + dependency: "direct main" + description: + name: wakelock_plus + sha256: a474e314c3e8fb5adef1f9ae2d247e57467ad557fa7483a2b895bc1b421c5678 + url: "https://pub.dev" + source: hosted + version: "1.3.2" + wakelock_plus_platform_interface: + dependency: transitive + description: + name: wakelock_plus_platform_interface + sha256: e10444072e50dbc4999d7316fd303f7ea53d31c824aa5eb05d7ccbdd98985207 + url: "https://pub.dev" + source: hosted + version: "1.2.3" web: dependency: transitive description: @@ -674,6 +706,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.1" + win32: + dependency: transitive + description: + name: win32 + sha256: daf97c9d80197ed7b619040e86c8ab9a9dad285e7671ee7390f9180cc828a51e + url: "https://pub.dev" + source: hosted + version: "5.10.1" xdg_directories: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 627a6a5..8dd467e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -47,6 +47,7 @@ dependencies: percent_indicator: ^4.2.5 connectivity_plus: ^6.1.4 url_launcher: ^6.3.1 + wakelock_plus: ^1.3.2 dev_dependencies: flutter_test: