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 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'lib') 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'), ), ), -- cgit v1.2.3