summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/main.dart3
1 files changed, 2 insertions, 1 deletions
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<MainScreen> 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<MainScreen> with WidgetsBindingObserver {
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: const Text('MegaView'),
+ centerTitle: true,
),
backgroundColor: _isPermissionGranted ? Colors.transparent : null,
body: _isPermissionGranted