├── .gitignore
├── .metadata
├── .vscode
└── launch.json
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_production_boilerplate_riverpod
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── fonts
│ ├── Nunito-Bold.ttf
│ ├── Nunito-Light.ttf
│ ├── Nunito-Medium.ttf
│ └── Nunito-Regular.ttf
├── img
│ ├── home_dark.png
│ ├── home_light.png
│ ├── info_dark.png
│ └── info_light.png
└── translations
│ ├── de.json
│ └── en.json
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
├── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ └── LaunchImage.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ └── README.md
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
└── RunnerTests
│ └── RunnerTests.swift
├── lib
├── config
│ └── style.dart
├── cubit
│ ├── bottom_nav_cubit.dart
│ ├── theme_cubit.dart
│ └── theme_state.dart
├── data
│ ├── enums
│ │ └── .gitkeep
│ ├── models
│ │ └── .gitkeep
│ └── repository
│ │ └── .gitkeep
├── main.dart
└── ui
│ ├── screens
│ ├── first_screen.dart
│ ├── second_screen.dart
│ └── skeleton_screen.dart
│ └── widgets
│ ├── app_bar_gone.dart
│ ├── bottom_nav_bar.dart
│ ├── first_screen
│ ├── info_card.dart
│ └── theme_card.dart
│ ├── header.dart
│ └── second_screen
│ ├── grid_item.dart
│ ├── link_card.dart
│ └── text_divider.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── app_icon_1024.png
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ └── app_icon_64.png
│ ├── Base.lproj
│ │ └── MainMenu.xib
│ ├── Configs
│ │ ├── AppInfo.xcconfig
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
└── RunnerTests
│ └── RunnerTests.swift
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
└── manifest.json
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Symbolication related
35 | app.*.symbols
36 |
37 | # Obfuscation related
38 | app.*.map.json
39 |
40 | # Android Studio will place build artifacts here
41 | /android/app/debug
42 | /android/app/profile
43 | /android/app/release
44 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: "5874a72aa4c779a02553007c47dacbefba2374dc"
8 | channel: "stable"
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
17 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
18 | - platform: android
19 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
20 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
21 | - platform: ios
22 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
23 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
24 | - platform: linux
25 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
26 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
27 | - platform: macos
28 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
29 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
30 | - platform: web
31 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
32 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
33 | - platform: windows
34 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
35 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "flutter_production_boilerplate",
9 | "request": "launch",
10 | "type": "dart"
11 | },
12 | {
13 | "name": "flutter_production_boilerplate (profile mode)",
14 | "request": "launch",
15 | "type": "dart",
16 | "flutterMode": "profile"
17 | },
18 | {
19 | "name": "flutter_production_boilerplate (release mode)",
20 | "request": "launch",
21 | "type": "dart",
22 | "flutterMode": "release"
23 | }
24 | ]
25 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Production Boilerplate
2 |
3 | *Note: If you prefer to use Riverpod instead of BLOC you can use [flutter_production_boilerplate_riverpod](https://github.com/anfeichtinger/flutter_production_boilerplate_riverpod)*
4 |
5 | ## A flutter project containing bloc, flutter_lints, hive, easy_translations and more!
6 |
7 | This repository is the starting point for my personal projects. If you have any suggestions or
8 | improvements feel free to let me know. The project strives to implement best practices recommended
9 | by Google and other developers. These best practices include but are not limited to:
10 |
11 | - Using BLOC & Cubit for state management.
12 | - Using Flutter Lints for stricter linting rules.
13 | - Using Hive for platform independent storage that also works for web.
14 | - Project structure, const constructors, extracted widgets and many more...
15 |
16 | ## Installation
17 |
18 | This repository requires [Flutter](https://flutter.dev/docs/get-started/install) to be installed and
19 | present in your development environment.
20 |
21 | Clone the project and enter the project folder.
22 |
23 | ```sh
24 | git clone git@github.com:anfeichtinger/flutter_production_boilerplate.git
25 | cd flutter_production_boilerplate
26 | ```
27 |
28 | You can remove the screenshots located in [assets/img/](./assets/img).
29 |
30 | Get the dependencies.
31 |
32 | ```sh
33 | flutter pub get
34 | ```
35 |
36 | Run the app via command line or through your development environment. (optional)
37 |
38 | ```sh
39 | flutter run lib/main.dart
40 | ```
41 |
42 | ## Pub packages
43 |
44 | This repository makes use of the following pub packages:
45 |
46 | | Package | Version | Usage |
47 | |-----------------------------------------------------------------------------|----------|-----------------------------------------------------|
48 | | [Bloc](https://pub.dev/packages/bloc) | ^8.1.4 | State management* |
49 | | [Flutter Bloc](https://pub.dev/packages/flutter_bloc) | ^8.1.6 | State management* |
50 | | [Hydrated Bloc](https://pub.dev/packages/hydrated_bloc) | ^9.1.5 | Persists Bloc state with Hive |
51 | | [Equatable](https://pub.dev/packages/equatable) | ^2.0.5 | Easily compare custom classes, used for Bloc states* |
52 | | [Flutter Lints](https://pub.dev/packages/flutter_lints) | ^4.0.0 | Stricter linting rules* |
53 | | [Flutter Displaymode](https://pub.dev/packages/flutter_displaymode) | ^0.6.0 | Support high refresh rate displays* |
54 | | [Path Provider](https://pub.dev/packages/path_provider) | ^2.1.4 | Get the save path for Hive |
55 | | [Easy Localization](https://pub.dev/packages/easy_localization) | ^3.0.7 | Makes localization easy |
56 | | [Hive](https://pub.dev/packages/hive) | ^2.2.3 | Platform independent storage. |
57 | | [Hive Flutter](https://pub.dev/packages/hive_flutter) | ^1.1.0 | Flutter plugin for hive. |
58 | | [Url Launcher](https://pub.dev/packages/url_launcher) | ^6.3.0 | Open urls in Browser |
59 | | [FluentUI Icons](https://pub.dev/packages/fluentui_system_icons) | ^1.1.255 | Microsoft's open source icon library |
60 | | [Staggered Grid view](https://pub.dev/packages/flutter_staggered_grid_view) | ^0.7.0 | Better grid views |
61 |
62 | > \* Recommended to keep regardless of your project
63 |
64 | ## Using this package as a starting point
65 |
66 | After following the installation steps you can customize your project. The screens and widgets that
67 | are inside the project can be easily replaced or removed. They are supposed to give the user a basic
68 | understanding of the relations between widgets and some good practices. The code includes some
69 | comments with documentation and examples. The examples can be found by searching for "Example:"
70 | inside the project files.
71 |
72 | ### Changing the package and app name
73 |
74 | You can follow the instructions in this [Stackoverflow issue](https://stackoverflow.com/a/51550358) or this [Flutter package](https://pub.dev/packages/change_app_package_name) .
75 |
76 | ### Theme
77 |
78 | You can customize your brand colors in the [lib/config/style.dart](./lib/config/style.dart) file.
79 | The project uses colors from [TailwindCSS](https://tailwindcss.com/docs/customizing-colors). The default theme contains comments that indicate which tailwind color is used. Feel free to replace the colors with your own or use [dynamic material 3 themes](https://github.com/material-foundation/flutter-packages/tree/main/packages/dynamic_color).
80 |
81 | ### Removing unwanted packages
82 |
83 | If a package is not listed, then removing it from [pubspec.yaml](./pubspec.yaml) as well as all
84 | imports and uses should be enough. This is required for removing every packages, the following
85 | instructions are an addition to that.
86 |
87 | #### Flutter Lints
88 |
89 | Delete the [analysis_options.yaml](./analysis_options.yaml) file. As an alternative you can modify
90 | the rules in this file or use a different package like [Lint](https://pub.dev/packages/lint).
91 |
92 | #### Easy Localization
93 |
94 | Remove the [assets/translations](./assets/translations) folder. Go
95 | to [ios/Runner/Info.plist](./ios/Runner/Info.plist) and remove the following code:
96 |
97 | ```
98 | CFBundleLocalizations
99 |
100 | en
101 | de
102 |
103 | ```
104 |
105 | #### Url Launcher
106 |
107 | For iOS go to [ios/Runner/Info.plist](./ios/Runner/Info.plist) and remove the following code:
108 |
109 | ```
110 | LSApplicationQueriesSchemes
111 |
112 | https
113 | http
114 |
115 | ```
116 |
117 | For Android you can take a look at this [Stackoverflow issue](https://stackoverflow.com/a/65082750)
118 | for more information. Go
119 | to [android/app/src/AndroidManifest.xml](./android/app/src/main/AndroidManifest.xml) and remove the
120 | following code:
121 |
122 | ```
123 |
124 |
125 |
126 |
127 |
128 |
129 | ```
130 |
131 | ## Screenshots
132 |
133 | #### Light Theme
134 |
135 | | Home Light | Info Light |
136 | |--------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
137 | |  |  |
138 |
139 | #### Dark Theme
140 |
141 | | Home Dark German | Info Dark German |
142 | |-----------------------------------------------------------------------------|-----------------------------------------------------------------------------|
143 | |  |  |
144 |
145 | ## License
146 |
147 | MIT
148 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at https://dart.dev/lints.
17 | #
18 | # Instead of disabling a lint rule for the entire project in the
19 | # section below, it can also be suppressed for a single line of code
20 | # or a specific dart file by using the `// ignore: name_of_lint` and
21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
22 | # producing the lint.
23 | rules:
24 | avoid_print: false # Uncomment to disable the `avoid_print` rule
25 | prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26 | always_specify_types: true # Uncomment to enable the `always_specify_types` rule
27 |
28 | # Uncomment the analyzer block to enable stricter type checks
29 | analyzer:
30 | language:
31 | strict-casts: true
32 | strict-inference: true
33 | strict-raw-types: true
34 |
35 | # Additional information about this file can be found at
36 | # https://dart.dev/guides/language/analysis-options
37 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/to/reference-keystore
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id "com.android.application"
3 | id "kotlin-android"
4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5 | id "dev.flutter.flutter-gradle-plugin"
6 | }
7 |
8 | android {
9 | namespace = "com.example.flutter_production_boilerplate"
10 | compileSdk = flutter.compileSdkVersion
11 | ndkVersion = flutter.ndkVersion
12 |
13 | compileOptions {
14 | sourceCompatibility = JavaVersion.VERSION_1_8
15 | targetCompatibility = JavaVersion.VERSION_1_8
16 | }
17 |
18 | kotlinOptions {
19 | jvmTarget = JavaVersion.VERSION_1_8
20 | }
21 |
22 | defaultConfig {
23 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24 | applicationId = "com.example.flutter_production_boilerplate"
25 | // You can update the following values to match your application needs.
26 | // For more information, see: https://flutter.dev/to/review-gradle-config.
27 | minSdk = flutter.minSdkVersion
28 | targetSdk = flutter.targetSdkVersion
29 | versionCode = flutter.versionCode
30 | versionName = flutter.versionName
31 | }
32 |
33 | buildTypes {
34 | release {
35 | // TODO: Add your own signing config for the release build.
36 | // Signing with the debug keys for now, so `flutter run --release` works.
37 | signingConfig = signingConfigs.debug
38 | }
39 | }
40 | }
41 |
42 | flutter {
43 | source = "../.."
44 | }
45 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_production_boilerplate_riverpod/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_production_boilerplate
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity()
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | ext.kotlin_version = '2.0.20'
2 |
3 | allprojects {
4 | repositories {
5 | google()
6 | mavenCentral()
7 | }
8 | }
9 |
10 | rootProject.buildDir = "../build"
11 | subprojects {
12 | project.buildDir = "${rootProject.buildDir}/${project.name}"
13 | }
14 | subprojects {
15 | project.evaluationDependsOn(":app")
16 | }
17 |
18 | tasks.register("clean", Delete) {
19 | delete rootProject.buildDir
20 | }
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | def flutterSdkPath = {
3 | def properties = new Properties()
4 | file("local.properties").withInputStream { properties.load(it) }
5 | def flutterSdkPath = properties.getProperty("flutter.sdk")
6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 | return flutterSdkPath
8 | }()
9 |
10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
11 |
12 | repositories {
13 | google()
14 | mavenCentral()
15 | gradlePluginPortal()
16 | }
17 | }
18 |
19 | plugins {
20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21 | id "com.android.application" version "7.3.0" apply false
22 | id "org.jetbrains.kotlin.android" version "2.0.20" apply false
23 | }
24 |
25 | include ":app"
26 |
--------------------------------------------------------------------------------
/assets/fonts/Nunito-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/fonts/Nunito-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Nunito-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/fonts/Nunito-Light.ttf
--------------------------------------------------------------------------------
/assets/fonts/Nunito-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/fonts/Nunito-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/Nunito-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/fonts/Nunito-Regular.ttf
--------------------------------------------------------------------------------
/assets/img/home_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/img/home_dark.png
--------------------------------------------------------------------------------
/assets/img/home_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/img/home_light.png
--------------------------------------------------------------------------------
/assets/img/info_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/img/info_dark.png
--------------------------------------------------------------------------------
/assets/img/info_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/assets/img/info_light.png
--------------------------------------------------------------------------------
/assets/translations/de.json:
--------------------------------------------------------------------------------
1 | {
2 | "app_name": "Flutter Production Boilerplate",
3 | "bottom_nav_first": "Start",
4 | "bottom_nav_second": "Details",
5 | "localization_title": "Übersetzung",
6 | "localization_content": "Vereinfachte Übersetzungen mit dem Paket Easy Translations.",
7 | "linting_title": "Linting",
8 | "linting_content": "Strengere Linting-Regeln mit Flutter Lints, empfohlen vom Dart-Team.",
9 | "storage_title": "Speicher",
10 | "storage_content": "Extrem schnelle, in reinem Dart geschriebene key-value Datenbank mit Hive.",
11 | "dark_mode_title": "Nachtmodus",
12 | "dark_mode_content": "Sanfter Übergang in den Nachtmodus durch die eingebaute Theming-Engine mit Material Design 3.",
13 | "state_title": "Zustand",
14 | "state_content": "Leistungsstarke Zustandsverwaltung mit BLOC & Cubit.",
15 | "display_title": "Anzeige",
16 | "display_content": "Displays mit hoher Bildwiederholrate durch Flutter Displaymode.",
17 | "language_switch_title": "Deutsche Übersetzung",
18 | "github_card_title": "GitHub Repository",
19 | "website_card_title": "Webseite",
20 | "instagram_card_title": "Instagram",
21 | "donate_card_title": "Spenden",
22 | "author_divider_title": "Erstellt von",
23 | "packages_divider_title": "Pakete",
24 | "bloc": "Bloc",
25 | "flutter_bloc": "Flutter Bloc",
26 | "hydrated_bloc": "Hydrated Bloc",
27 | "equatable": "Equatable",
28 | "lints": "Flutter Lints",
29 | "path_provider": "Path provider",
30 | "flutter_displaymode": "Displaymode",
31 | "easy_localization": "Easy localization",
32 | "hive": "Hive",
33 | "hive_flutter": "Hive Flutter",
34 | "url_launcher": "Url launcher",
35 | "fluentui_system_icons": "FluentUI Icons",
36 | "flutter_staggered_grid_view": "Staggered Grid View"
37 | }
--------------------------------------------------------------------------------
/assets/translations/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "app_name": "Flutter Production Boilerplate",
3 | "bottom_nav_first": "Home",
4 | "bottom_nav_second": "Details",
5 | "localization_title": "Localization",
6 | "localization_content": "Simplified translations with the Easy Translations package.",
7 | "linting_title": "Linting",
8 | "linting_content": "Stricter linting rules with flutter lints recommended by the dart team.",
9 | "storage_title": "Storage",
10 | "storage_content": "Blazing fast key-value database written in pure Dart with Hive.",
11 | "dark_mode_title": "Dark Mode",
12 | "dark_mode_content": "Smooth transition to dark mode by using the inbuilt theming engine with material design 3.",
13 | "state_title": "State",
14 | "state_content": "Powerful state management using BLOC & Cubit.",
15 | "display_title": "Display",
16 | "display_content": "Support for high refresh rate displays with flutter displaymode.",
17 | "language_switch_title": "German translation",
18 | "github_card_title": "GitHub repository",
19 | "website_card_title": "Website",
20 | "instagram_card_title": "Instagram",
21 | "donate_card_title": "Donate",
22 | "author_divider_title": "Created by",
23 | "packages_divider_title": "Packages",
24 | "bloc": "Bloc",
25 | "flutter_bloc": "Flutter Bloc",
26 | "hydrated_bloc": "Hydrated Bloc",
27 | "equatable": "Equatable",
28 | "lints": "Flutter Lints",
29 | "path_provider": "Path provider",
30 | "flutter_displaymode": "Displaymode",
31 | "easy_localization": "Easy localization",
32 | "hive": "Hive",
33 | "hive_flutter": "Hive Flutter",
34 | "url_launcher": "Url launcher",
35 | "fluentui_system_icons": "FluentUI Icons",
36 | "flutter_staggered_grid_view": "Staggered Grid View"
37 | }
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 12.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
63 |
65 |
71 |
72 |
73 |
74 |
80 |
82 |
88 |
89 |
90 |
91 |
93 |
94 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 |
4 | @main
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reafeichtinger/flutter_production_boilerplate/7e1d09a1ce17ddc3b7877f390d7a992c73d349b9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Flutter Production Boilerplate
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | flutter_production_boilerplate
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | CADisableMinimumFrameDurationOnPhone
45 |
46 | UIApplicationSupportsIndirectInputEvents
47 |
48 | LSApplicationQueriesSchemes
49 |
50 | https
51 | http
52 |
53 | CFBundleLocalizations
54 |
55 | en
56 | de
57 |
58 | LSApplicationQueriesSchemes
59 |
60 | sms
61 | tel
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/lib/config/style.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | /// This class contains all custom styles and theme information
4 | /// to be easily updated in a single place.
5 | class Style {
6 | const Style();
7 |
8 | // =================
9 | // | Border radius |
10 | // =================
11 |
12 | /// Large circular radius: 24
13 | static const Radius radiusLg = Radius.circular(24);
14 |
15 | /// Medium circular radius: 12
16 | static const Radius radiusMd = Radius.circular(12);
17 |
18 | /// Small circular radius: 8
19 | static const Radius radiusSm = Radius.circular(8);
20 |
21 | // ===============
22 | // | Light Theme |
23 | // ===============
24 |
25 | /// The custom light theme of this application
26 | static final ThemeData lightTheme =
27 | ThemeData.light(useMaterial3: true).copyWith(
28 | // Light or dark mode
29 | brightness: Brightness.light,
30 | // Basic color definitions
31 | colorScheme: ColorScheme.fromSeed(
32 | // The seed sets the primary colors automatically
33 | seedColor: const Color(0xFF7c3aed), // violet-600
34 | // How the colors are calculated from the seed
35 | dynamicSchemeVariant: DynamicSchemeVariant.rainbow,
36 | onPrimary: Colors.white,
37 | secondary: const Color(0xFF7c3aed), // violet-600
38 | onSecondary: Colors.white,
39 | tertiary: const Color(0xFFdb2777), // pink-600
40 | onTertiary: Colors.white,
41 | error: const Color(0xFFdc2626), // red-600
42 | // The main background
43 | surface: const Color(0xFFF1F5F9), // slate-100
44 | // Elements like cards on the main background
45 | surfaceContainer: Colors.white,
46 | // Text on the main background
47 | onSurface: const Color(0xFF030712), // gray-950
48 | // Text on the cards
49 | onSurfaceVariant: const Color(0xFF111827), // gray-900
50 | ),
51 | // Divider
52 | dividerColor: const Color(0xFFcbd5e1), // slate-300
53 | // Used for shadows and in this project also borders of cards
54 | shadowColor: Colors.black.withOpacity(.1),
55 | // Specific text styles and fonts
56 | textTheme: ThemeData.light(useMaterial3: true).textTheme.apply(
57 | fontFamily: 'Nunito',
58 | displayColor: const Color(0xFF030712), // gray-950
59 | bodyColor: const Color(0xFF111827), // gray-900
60 | ),
61 | primaryTextTheme: ThemeData.light(useMaterial3: true).textTheme.apply(
62 | fontFamily: 'Nunito',
63 | displayColor: Colors.white,
64 | bodyColor: const Color(0xFFf9fafb), // gray-50
65 | ),
66 | // Bottom navigation theme
67 | bottomNavigationBarTheme: const BottomNavigationBarThemeData(
68 | backgroundColor: Colors.white,
69 | elevation: 2,
70 | ),
71 | // Note: If different components are used you might need to provide specific styles for them
72 | );
73 |
74 | // ===============
75 | // | Dark Theme |
76 | // ===============
77 |
78 | /// The custom dark theme of this application
79 | static final ThemeData darkTheme =
80 | ThemeData.dark(useMaterial3: true).copyWith(
81 | // Light or dark mode
82 | brightness: Brightness.dark,
83 | // Basic color definitions
84 | colorScheme: ColorScheme.fromSeed(
85 | // Example: Overwrite the primary color
86 | seedColor: const Color(0xFFc4b5fd), // violet-400
87 | primary: const Color(0xFFc4b5fd), // violet-400
88 | onPrimary: Colors.black,
89 | secondary: const Color(0xFFa78bfa), // violet-400
90 | onSecondary: Colors.white,
91 | tertiary: const Color(0xFFf472b6), // pink-400
92 | onTertiary: Colors.white,
93 | error: const Color(0xFFef4444), // red-500
94 | // The main background
95 | surface: Colors.black,
96 | // Elements like cards on the main background
97 | surfaceContainer: const Color(0xFF18181b), // zinc-900
98 | // Text on the main background
99 | onSurface: const Color(0xFFf9fafb), // gray-50
100 | // Text on the cards
101 | onSurfaceVariant: const Color(0xFFf3f4f6), // gray-100
102 | ),
103 | // Divider
104 | dividerColor: const Color(0xFF52525b), // zinc-600
105 | // Used for shadows and in this project also borders of cards
106 | shadowColor: Colors.white.withOpacity(.1),
107 | // Specific text styles and fonts
108 | textTheme: ThemeData.dark(useMaterial3: true).textTheme.apply(
109 | fontFamily: 'Nunito',
110 | displayColor: const Color(0xFFf9fafb), // gray-50
111 | bodyColor: const Color(0xFFf3f4f6), // gray-100
112 | ),
113 | primaryTextTheme: ThemeData.dark(useMaterial3: true).textTheme.apply(
114 | fontFamily: 'Nunito',
115 | displayColor: const Color(0xFF030712), // gray-950
116 | bodyColor: const Color(0xFF111827), // gray-900
117 | ),
118 | // Bottom navigation theme
119 | bottomNavigationBarTheme: const BottomNavigationBarThemeData(
120 | backgroundColor: Color(0xFF27272a), // zinc-800,
121 | elevation: 2,
122 | ),
123 | // Note: If different components are used you might need to provide specific styles for them
124 | );
125 | }
126 |
--------------------------------------------------------------------------------
/lib/cubit/bottom_nav_cubit.dart:
--------------------------------------------------------------------------------
1 | import 'package:hydrated_bloc/hydrated_bloc.dart';
2 |
3 | class BottomNavCubit extends HydratedCubit {
4 | BottomNavCubit() : super(0);
5 |
6 | void updateIndex(int index) => emit(index);
7 |
8 | void getFirstScreen() => emit(0);
9 |
10 | void getSecondScreen() => emit(1);
11 |
12 | @override
13 | int? fromJson(Map json) {
14 | return json['pageIndex'] as int?;
15 | }
16 |
17 | @override
18 | Map? toJson(int state) {
19 | return {'pageIndex': state};
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/cubit/theme_cubit.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:hydrated_bloc/hydrated_bloc.dart';
4 |
5 | part 'theme_state.dart';
6 |
7 | class ThemeCubit extends HydratedCubit {
8 | ThemeCubit() : super(const ThemeModeState());
9 |
10 | void getTheme(ThemeModeState state) {
11 | emit(state);
12 | }
13 |
14 | @override
15 | ThemeModeState? fromJson(Map json) {
16 | switch (json['themeMode']) {
17 | case 'ThemeMode.dark':
18 | return const ThemeModeState(themeMode: ThemeMode.dark);
19 | case 'ThemeMode.light':
20 | return const ThemeModeState(themeMode: ThemeMode.light);
21 | case 'ThemeMode.system':
22 | default:
23 | return const ThemeModeState(themeMode: ThemeMode.system);
24 | }
25 | }
26 |
27 | @override
28 | Map? toJson(ThemeModeState state) {
29 | return {'themeMode': state.themeMode.toString()};
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/lib/cubit/theme_state.dart:
--------------------------------------------------------------------------------
1 | part of 'theme_cubit.dart';
2 |
3 | @immutable
4 | class ThemeModeState extends Equatable {
5 | const ThemeModeState({this.themeMode = ThemeMode.system});
6 |
7 | final ThemeMode? themeMode;
8 |
9 | @override
10 | List