Skip to content

Commit d58b095

Browse files
authored
docs: Updated README.md (#160)
1 parent cd31a66 commit d58b095

File tree

8 files changed

+36
-23
lines changed

8 files changed

+36
-23
lines changed

README.md

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,36 @@ This project serves as a template project for Flutter applications. You can gene
66

77
## 🔧 Setup and Installation
88

9-
- Execute `$ flutter doctor` to verify installations
10-
- Execute `$ pub get` to pull project dependencies
11-
- Execute a run configuration of choice
12-
- `$ flutter run --flavor development -t lib/main_development.dart --dart-define-from-file=lib/config/dart_define_keys/dart_define_development_keys.json`
13-
- `$ flutter run --flavor staging -t lib/main_staging.dart --dart-define-from-file=lib/config/dart_define_keys/dart_define_staging_keys.json`
14-
15-
⚠️ **Running the Production Flavor**
16-
17-
It is **not recommended** to run the production flavor directly from the IDE
18-
(VS Code or Android Studio) as it may be run by mistake. For ease and accuracy,
19-
it is advised to run flavors via the **VS Code launch menu** or the **Android
20-
Studio Run menu** instead.
9+
1. Execute `$ flutter doctor` to verify installations.
10+
2. Execute `$ pub get` to pull project dependencies.
11+
3. Execute a run configuration of your choice:
12+
13+
```sh
14+
flutter run --flavor development -t lib/main_development.dart --dart-define-from-file=lib/config/dart_define_keys/dart_define_development_keys.json
15+
```
16+
17+
```sh
18+
flutter run --flavor staging -t lib/main_staging.dart --dart-define-from-file=lib/config/dart_define_keys/dart_define_staging_keys.json`
19+
```
20+
21+
> [!IMPORTANT]
22+
> ⚠️ **Running the Production Flavor**
23+
>
24+
> It is **not recommended** to run the production flavor directly from the IDE
25+
> (VS Code or Android Studio) as it may be run by mistake. For ease and
26+
> accuracy,
27+
> it is advised to run flavors via the **VS Code launch menu** or the
28+
> **Android Studio Run menu** instead.
29+
>
30+
> To use the build runner, use this command:
31+
>
32+
> ```sh
33+
> dart run build_runner build --delete-conflicting-outputs
34+
> ```
2135

2236
## 🌲 Branches
2337

24-
- `master` - Latest version in the app store.
38+
- `main` - Latest version in the app store.
2539
- `develop` - Default. Feature branches are merged in when complete and then deleted.
2640

2741
## 🔗 Useful links
@@ -32,4 +46,3 @@ Studio Run menu** instead.
3246
- [OpenAPI Specification](https://TODO)
3347
- [NStack](https://TODO)
3448
- [Figma Design](https://TODO)
35-
- [UI Manifesto](https://github.com/monstar-lab-oss/ui-manifesto)

lib/config/dart_define.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// This class is declared as an `abstract interface` to restrict inheritance
1+
// This class is declared as an `abstract final` to restrict inheritance
22
// and prevent instantiation outside the library.
3-
abstract interface class DartDefine {
3+
abstract final class DartDefine {
44
static const apiBaseUrl = String.fromEnvironment('API_BASE_URL');
55
}

lib/presentation/common/assets_cache_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
abstract interface class AssetsCachingManager {
1+
abstract final class AssetsCachingManager {
22
/// Caches only the animations required at the initial app startup,
33
/// specifically for the splash screen.
44
///

lib/presentation/resources/app_color_palette.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
33
/// Defines color palette for the application.
44
///
55
/// Consider using the color name that is mentioned in Figma.
6-
abstract interface class AppColorPalette {
6+
abstract final class AppColorPalette {
77
const AppColorPalette._();
88

99
static const alpha = Colors.transparent;

lib/presentation/resources/app_fonts.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter_template/gen/fonts.gen.dart';
22

3-
abstract interface class AppFonts {
3+
abstract final class AppFonts {
44
AppFonts._();
55

66
static const roboto = FontFamily.roboto;

lib/presentation/resources/app_theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22
import 'package:flutter_template/presentation/extensions/color_extensions.dart';
33
import 'package:flutter_template/presentation/resources/resources.dart';
44

5-
abstract interface class AppTheme {
5+
abstract final class AppTheme {
66
const AppTheme._();
77

88
static ThemeData fromBrightness(Brightness brightness) {

lib/presentation/resources/app_ui_constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
44
///
55
/// This class contains non-sensitive information and is designed to maintain consistency
66
/// across the app's UI elements.
7-
abstract interface class AppUiConstants {
7+
abstract final class AppUiConstants {
88
AppUiConstants._();
99

1010
// Animations

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dependencies:
1414

1515
# UI & Design
1616
cupertino_icons: ^1.0.8
17-
flutter_svg: 2.0.9 # Change with caution
18-
lottie: 1.4.3 # Change with caution
17+
flutter_svg: 2.0.9 # ⚠️ Change with caution (reason: nstack)
18+
lottie: 3.0.0 # ⚠️ Change with caution (reason: nstack -> http)
1919
flutter_sticky_header: ^0.7.0
2020
auto_size_text: ^3.0.0
2121
theme_tailor_annotation: ^3.0.1

0 commit comments

Comments
 (0)