From 4c50d6bec46f471d58a0a04af23e1b75eeb8cb49 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Wed, 20 Sep 2023 21:53:41 +0300 Subject: Better UI and final form of the OCR app. Changes to be committed: modified: lib/main.dart modified: pubspec.lock --- lib/main.dart | 16 +++++++++++----- pubspec.lock | 16 ++++++++-------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 6480384..a9d9b35 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -124,15 +124,21 @@ class _MainScreenState extends State with WidgetsBindingObserver { backgroundColor: _isPermissionGranted ? Colors.transparent : null, body: _isPermissionGranted ? Column( + mainAxisAlignment: MainAxisAlignment.end, children: [ - Expanded( - child: Container(), - ), + Container(), Container( - padding: const EdgeInsets.only(bottom: 13.0), - child: Center( + color: Theme.of(context).colorScheme.inversePrimary, + alignment: Alignment.center, + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 8.0), child: ElevatedButton( onPressed: _scanImage, + style: ButtonStyle( + minimumSize: MaterialStateProperty.all( + const Size(256, 64), // Set the desired width and height + ), + ), child: const Text('Scan text'), ), ), diff --git a/pubspec.lock b/pubspec.lock index 4110704..9cf25df 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: archive - sha256: "49b1fad315e57ab0bbc15bcbb874e83116a1d78f77ebd500a4af6c9407d6b28e" + sha256: e0902a06f0e00414e4e3438a084580161279f137aeb862274710f29ec10cf01e url: "https://pub.dev" source: hosted - version: "3.3.8" + version: "3.3.9" args: dependency: transitive description: @@ -45,18 +45,18 @@ packages: dependency: transitive description: name: camera_android - sha256: ed4f645848074166fc3b8e20350f83ca07e09a2becc1e185040ee561f955d4df + sha256: "647af159e244b8bc0fb80abc11e5b86e692bdfc9e4a77c656ef2c1cd52d68e44" url: "https://pub.dev" source: hosted - version: "0.10.8+8" + version: "0.10.8+9" camera_avfoundation: dependency: transitive description: name: camera_avfoundation - sha256: "718b60ed2e22b4067fe6e2c0e9ebe2856c2de5c8b1289ba95d10db85b0b00bc2" + sha256: dde42d19ad4cdf79287f9e410599db72beaec7e505787dc6abfd0ce5b526e9c0 url: "https://pub.dev" source: hosted - version: "0.9.13+4" + version: "0.9.13+5" camera_platform_interface: dependency: transitive description: @@ -191,10 +191,10 @@ packages: dependency: "direct main" description: name: flutter_tts - sha256: "00a7af85ba2b53847028efc175029764240ab980b984eb0eae8386e2c3f7c460" + sha256: "23d47e1335c632228b80d9693e2494a834393fff5893b66e8ae494dcce4e9867" url: "https://pub.dev" source: hosted - version: "3.8.2" + version: "3.8.3" flutter_web_plugins: dependency: transitive description: flutter -- cgit v1.2.3