Skip to content

Latest commit

 

History

History

mobile-app

itzme

A simple mobile application for Android, built with Flutter.

Repository Structure

All relevant folders are in the lib folder, where everything is organized into 4 folders.

  1. models

This folder contains classes and objects used throughout the application. As of now, it only contains the Credentials class, which handles the storage of users' private keys and block numbers.

  1. screens

This folder holds code for the UI of the application, and some basic application functionality.

  1. services

The code in this folder lets the application connect and communicate with external applications and services. There are 3 services as of now:

  • auth.dart - Authentication using PIN or biometrics
  • blockchain.dart - Sends and retrieves data from the blockchain server
  • hive.dart - Handles the storage of data locally in the device
  1. widgets

This folder is not as important, it contains widgets that are commonly used throughout the application.

Getting Started

Setup

Follow the instructions from here to install Flutter.

At the time of writing this, Flutter v3.3.0 was used:

$ flutter --version
Flutter 3.3.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ffccd96b62 (3 months ago) • 2022-08-29 17:28:57 -0700
Engine • revision 5e9e0e0aa8
Tools • Dart 2.18.0 • DevTools 2.15.0

Running the app

After Flutter is installed, run flutter doctor to make sure everything is good.

To run the app, ensure a device is running and use the following command:

flutter run

This should automatically install the required dependencies and run the app in the connected device.