Skip to content

Dwiga/beetlehr-mobile

Repository files navigation

TrackingWorks

Table Of Content

  1. Getting Started
  2. Flavor Type
  3. Building App
  4. Structure Module
  5. Detail Structure Item Feature Module

Getting Started

  1. Clone this repo
  2. Getting packages with running flutter pub get
  3. Run/Debug with Flavor

Flavor Type

Dev

Run in dev mode:

flutter run -t lib/main_dev.dart --flavor dev
 git fetch --prune```

### STAGING

Run in staging mode:

```bash
flutter run -t lib/main_staging.dart --flavor staging

PROD

This flavor only for Production. Don't test in this flavor.

Run in prod mode:

flutter run -t lib/main_prod.dart --flavor prod

Building App

Android

IOS

Structure Modules

Shared Module Module

Module Description
core Basic common
dependencies Global Dependencies
l10n Translation & Localization
component Component App
preferences All Prefences style app (Theme, Color, Dimens, Fonts, etc)
routes Routing screen module

Feature Module

Module Description
auth Authentication Module (Login, Register, Logout, Reset)
home Home Features
profile Profile Page, Edit Profile, View Profile, etc..
apps List mini apps features
notice Notification, alert, etc..
settings Setting preferences: theme, language, ...
tasks Task board
attendance Attendance module clock in, clock out, ...

Detail Structure Item Module Feature

Generate Icon Launcher

All launcher icon configurations are in the flutter_launcher_icons-*.yaml file, and to generate use the following command:

flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons*

Note: Only for IOS