GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - stevenosse/flutter_kit: Opinionated flutter starter project using feature-first folder structure.

BranchesTags
Open more actions menu

Latest commit

 

History

54 Commits
54 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
android
android
 
 
assets
assets
 
 
ios
ios
 
 
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.metadata
.metadata
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
analysis_options.yaml
analysis_options.yaml
 
 
build.yaml
build.yaml
 
 
flutter-kit-logo.png
flutter-kit-logo.png
 
 
pubspec.lock
pubspec.lock
 
 
pubspec.yaml
pubspec.yaml
 
 
setup.bat
setup.bat
 
 
setup.sh
setup.sh
 
 

Repository files navigation

Flutter Kit

Opinionated flutter starter project using feature-first folder structure.

GitHub stars      GitHub forks

Motivation

Flutter is geat, really. But after few years of development, it's not as easy as it seems; starting a new project can be quite a challenge. The fact that Flutter is as less opinionated has some benefits but also comes with some drawbacks among those the pain of starting a new project. You can easily waste a lot how hours to get productive, while you only wanted to POC a new idea.

This kit provides a set of preconfigured features and utilities to help you get started with your project. It is inspired by my own experience and knowledge of Flutter. I hope you find it useful.

If you are not confortable with some choices i made in the structure, we can either discuss it (yeah i may find it helpful) or fork this repo to create your own.

What's in this kit?

This kit includes:

  • An example login feature
  • I18n
  • Navigation
  • State management
  • Extensions
  • Basic config for API calls
  • Theming (Material 3)

Get started

1. Clone the repository

git clone [email protected]:stevenosse/flutter_kit.git

2. Configure your project

Add your configuration to the pubspec.yaml file under the flutter_kit key:

flutter_kit:
  app_name: Your App Name
  ios_bundle_id: com.yourcompany.yourapp
  android_package_name: com.yourcompany.yourapp

3. Run the setup script

On macOS/Linux:

chmod +x setup.sh
./setup.sh

On Windows:

setup.bat

The setup script will:

  • Update your app name for both iOS and Android
  • Change the iOS bundle identifier
  • Change the Android package name
  • Move the Android files to the correct package structure

4. Run flutter pub get

flutter pub get

Features

This kit comes with a set of preconfigured features and utilities:

  • I18n
  • Navigation (using auto_route)
  • State management (using plain change notifier)
  • Extensions (on context, iterable)
  • Utility widgets
  • Default Theming using Material 3

πŸ—ΊοΈ I18n

This kit uses intl_utils for internationalization. To add a new language, add a new file to the src/core/i18n/l10n folder. The file name should be the language code prefixed with intl_ (e.g. intl_fr.arb).

To generate the code for the new language, run the following command:

flutter pub run intl_utils:generate

Alternatively, you can install the flutter_intl package in VSCode to automatically generate the code when you save the file.

πŸ›£οΈ Navigation

This kit uses auto_route for navigation. To add a new route, add a new file to the src/core/routing/app_router.dart file.

See the auto_route documentation for more information.

🧱 State Management

This kit uses a ViewModel architecture built on top of provider and change notifiers.

An example of a ViewModel can be found in the src/features/login/logic folder.

πŸ—Ό Extensions

This kit comes with a few extensions on the BuildContext and Iterable classes. See the src/shared/extensions folder for more information.

πŸ“Œ Utils

Widgets

This kit comes with a few utility widgets. See the src/shared/components folder for more information.

Assets

Assets paths are automatically generated when using build_runnner thanks to the flutter_gen package.

Each time you add an asset, run the following command:

$ fluttergen

CLI

This kit comes with a few CLI commands to make your life easier. It uses make:

  • Windows: choco install make
  • Linux: sudo apt install make
  • Mac: brew install make

See the Makefile for more information.

πŸ–ŒοΈ Theming

This kit uses the new Material 3 theming system. See the src/core/theme folder for more information.

The default color scheme is generated using https://m3.material.io/theme-builder#/custom. You can use this tool to generate your own color scheme.

Showcase

  • LineAI

πŸ’Ό Need a new feature?

If you need a new feature, please open an issue on the GitHub repository

πŸ“‡ Get in touch

If you have any questions, feel free to contact me on Twitter

TODO

  • Setup a CI pipeline
  • Add setup for unit tests

About

Opinionated flutter starter project using feature-first folder structure.

stevenosse.github.io/flutter_kit/

Topics

dartflutterflutter-bloctemplate

Resources

Readme
MIT license
Activity

Stars

89 stars

Watchers

4 watching

Forks

14 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.