Skip to content

Bdaya-Dev/bricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bdaya_bricks

Powered by Mason

some mason bricks that we use for our internal workflow

Note that we use bdaya_flutter_common as a base library for the generated code We also need build_runner as a dev dependency.

  • bdaya_form
    • generate a form using reactive_forms_annotations + reactive_forms_generator
  • bdaya_page
    • generate a simple page (view + controller)
  • bdaya_route
    • generate a page that reacts to route changes from go_router

Usage on git

  1. Activate mason_cli
    • dart pub global activate mason_cli
  2. Add Bricks
    • bdaya_form
      mason add bdaya_form --git-url https://github.com/Bdaya-Dev/bricks --git-path bdaya_form
      
    • bdaya_route
      mason add bdaya_route --git-url https://github.com/Bdaya-Dev/bricks --git-path bdaya_route
      
    • bdaya_page
      mason add bdaya_page --git-url https://github.com/Bdaya-Dev/bricks --git-path bdaya_page
      
  3. mason get
  4. Make
    • bdaya_form:
      mason make bdaya_form -o lib/src/dialogs --name EditUser
      

      Note that bdaya_form requires some dependencies, which you can add using this command:

      dart pub add reactive_forms_annotations --dev reactive_forms_generator

    • bdaya_route:
      mason make bdaya_route -o lib/src/pages --name UserDetails
      
    • bdaya_page:
      mason make bdaya_page -o lib/src/pages --name Users
      

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published