diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-20 21:53:41 +0300 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-20 21:53:41 +0300 |
commit | 4c50d6bec46f471d58a0a04af23e1b75eeb8cb49 (patch) | |
tree | 77577be1549d20339aad27c31872547dc1ad3c4f /lib/main.dart | |
parent | af6e4b99a757c58404b5b4b3adc94ffeb784199d (diff) |
Better UI and final form of the OCR app.1.0
Changes to be committed:
modified: lib/main.dart
modified: pubspec.lock
Diffstat (limited to 'lib/main.dart')
-rw-r--r-- | lib/main.dart | 16 |
1 files changed, 11 insertions, 5 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<MainScreen> 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<Size>( + const Size(256, 64), // Set the desired width and height + ), + ), child: const Text('Scan text'), ), ), |