From 07150b61d3593fc9ad764a7884e50a5190178e1b Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:11:31 +0300 Subject: Functional Project State Changes to be committed: modified: .metadata modified: android/app/build.gradle renamed: android/app/src/main/kotlin/com/example/yolo/MainActivity.kt -> android/app/src/main/kotlin/com/example/yoloo/MainActivity.kt new file: android/app/src/main/res/AndroidManifest.xml deleted: android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png deleted: android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png deleted: android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png deleted: android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png deleted: android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png deleted: android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml modified: android/app/src/main/res/mipmap-hdpi/ic_launcher.png modified: android/app/src/main/res/mipmap-mdpi/ic_launcher.png modified: android/app/src/main/res/mipmap-xhdpi/ic_launcher.png modified: android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png modified: android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted: android/app/src/main/res/values/colors.xml modified: ios/Runner/Info.plist modified: lib/main.dart modified: pubspec.lock modified: pubspec.yaml --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/main.dart') diff --git a/lib/main.dart b/lib/main.dart index 46d76b8..173a152 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -92,7 +92,7 @@ class _MainScreenState extends State with WidgetsBindingObserver { void dispose() { WidgetsBinding.instance.removeObserver(this); _stopCamera(); - textRecognizer.close(); + textRecognizer.close(); // OCR Stop flutterTts.stop(); // TTS Stop vision.closeYoloModel(); // YOLO Stop super.dispose(); @@ -137,6 +137,7 @@ class _MainScreenState extends State with WidgetsBindingObserver { appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: const Text('MegaView'), + centerTitle: true, ), backgroundColor: _isPermissionGranted ? Colors.transparent : null, body: _isPermissionGranted -- cgit v1.2.3