From b5f8d5d3a097d366473883104cfbac57918399d7 Mon Sep 17 00:00:00 2001 From: Mohamed Ishad Date: Sun, 20 Nov 2022 13:55:02 +0530 Subject: [PATCH 1/2] moved circular progress indicators to the center --- lib/config.dart | 2 +- lib/pages/home_page.dart | 7 +++++-- lib/pages/settings_page.dart | 9 ++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/config.dart b/lib/config.dart index c7a00b1..55585b4 100644 --- a/lib/config.dart +++ b/lib/config.dart @@ -8,7 +8,7 @@ class Config{ static const String backendUrl = "https://iblock-sever.herokuapp.com"; - static const String VERSION = 'v1.0.0'; + static const String VERSION = 'v1.1.1'; } diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index 9434590..76af3eb 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -81,8 +81,11 @@ class _HomePageState extends State { ], ); } else if (state is Loading) { - return const Center( - child: CircularProgressIndicator(), + return SizedBox( + height: MediaQuery.of(context).size.height * 0.8, + child: const Center( + child: CircularProgressIndicator(), + ), ); } else { return const Center( diff --git a/lib/pages/settings_page.dart b/lib/pages/settings_page.dart index 58349a2..3033336 100644 --- a/lib/pages/settings_page.dart +++ b/lib/pages/settings_page.dart @@ -48,11 +48,10 @@ class _SettingsPageState extends State { }, builder: (context, state) { if (state is Initial || state is Loading) { - return const Center( - child: SizedBox( - width: 100, - height: 100, - child: CircularProgressIndicator(), + return SizedBox( + height: MediaQuery.of(context).size.height *0.7, + child: const Center( + child: CircularProgressIndicator() ), ); } else if (state is Loaded) { From c1ef786638574bcd2f383829a5f3d8474443fe83 Mon Sep 17 00:00:00 2001 From: Mohamed Ishad Date: Sun, 20 Nov 2022 14:16:03 +0530 Subject: [PATCH 2/2] updated README.md including the directory structure --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 1078abd..946eae7 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,21 @@ Source code for the mobile application of the `iBlock` person verification digit ### Objective Provide a user-friendly interface to interact with the platform. +### Directory Structure +Since project uses Flutter framework directories are organized according to it. The development is completely inside `/lib` directory. +
+Overview of files and directories in `/lib` +* `main.dart` - Handling theming, routing of the application. +* `config.dart` - Configurations for the application. +* `/bloc` - Contains all business logics for the application. The project is using [flutter_bloc](https://pub.dev/packages/flutter_bloc) library for state management. + * `/initialize` - contains all business logic, states, events related to initializing the app. + * `/signup` - contains all business logic, states, events used for signup process (including the recovery). + * `/settings` - contains all business logic, states, events for handle settings of the application. + * `/verify` - contains all business logic, states, events for handle verify process. +* `/pages` - Contains files for render the screens in the app. +* `/widgets` - Contains all supporting widgets created. +* `/services` - Contains all services created to support the application activities. + ### Configurations App can be configured to be used in any ethereum based testnet. To configure edit the `lib/config.dart` file. Following is a sample configuration to link with local ganache server