This is a mason brick you can use to generate code that gets you started right up with a flutter project

Powered by Mason

A flutter brick created with the Mason CLI.

Generated by [mason][1] ?

Getting Started ?


  1. Run dart pub global activate mason_cli to install mason.
  2. Go to the root of your new flutter application.
  3. Run mason add -g flutter_brick to install brick locally.
  4. Run mason make flutter_brick from the root of your application .
  5. Make the necessary changes.


  • The brick doesn’t incorporate riverpod or bloc as it gives you flexibility to choose whether to include them or not
  • The brick is intended to be run immediately after flutter create
  • Change the package name to your own
  • Overwrite main.dart Some other packages are included such as msix, native_splash,icons and will be run as follows:

    1. Icons The icon is under icon/icon.png, replace with your own and run command below See flutter_launcher_icons for more info

      • flutter pub run flutter_launcher_icons:main
    2. Splash The image is under assets/icon.png, replace with your own and run command below See flutter_native_splash

      • flutter pub run flutter_native_splash:create
    3. Msix To create msix windows installer See msix

      • flutter pub run msix:create
    4. Build runner To create fromJson and ToJson See build_runner

      • flutter packages pub run build_runner build –delete-conflicting-outputs

Feedback highly appreciated


View Github