Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few improvements in the UI & Added information about the directory structure in the README,md #38

Merged
merged 2 commits into from
Nov 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<br/>
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
Expand Down
2 changes: 1 addition & 1 deletion lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';


}
7 changes: 5 additions & 2 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ class _HomePageState extends State<HomePage> {
],
);
} 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(
Expand Down
9 changes: 4 additions & 5 deletions lib/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ class _SettingsPageState extends State<SettingsPage> {
},
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) {
Expand Down