flutter_templify 0.1.2 copy "flutter_templify: ^0.1.2" to clipboard
flutter_templify: ^0.1.2 copied to clipboard

flutter_templify is a customizable CLI tool for managing Flutter app templates with YAML-based project definitions.

flutter_templify #

Pub Version Publisher Pub Points License

flutter_templify is a customizable CLI tool for managing Flutter app templates with YAML-based project definitions.

See how to get started here.

Table of Contents #

  1. Features
  2. Installation
  3. Usage
  4. Developer Experience
  5. Featurs / Requests
  6. Powered by darted_cli
  7. License

Features #

  • Template Management: Easily define and reuse Flutter project templates with YAML configurations.
  • Platform-Specific Generation: Specify platforms like Android, iOS, or Web during project creation.
  • Organized Directory Structures: Generate projects with predefined folder and file layouts.
  • Customizable Metadata: Support for custom project names, package identifiers, and organization domains.
  • Interactive CLI: User-friendly prompts for dynamic project customization.
  • Cross-Platform Support: Works seamlessly on Windows, macOS, and Linux.

Installation #

  1. Activate the package globally via Dart's pub tool:
dart pub global activate flutter_templify
  1. Update your env variables with a FLUTTER_TEMPLIFY_PATH variable that has the path to your saved templates. for how to do that, you can check this link.

Once activated, you can use the flutter_templify command directly in your terminal.

Usage #

1. Define your Template

Define your template with an easy YAML file configuration:

name: "awesome-template"
description: "A basic template for MVP Flutter apps"
domain: micazi.dev
platforms:
  - ios
  - android
  - web
isPackage: false

structure:
  - main.env
  - anotherFile.MD
  - pubspec.yaml: "src/templates/pubspec.yaml"
  - lib/:
      - screens/
      - models/
      - widgets/
  - assets/:
      - images/
      - fonts/:
          - someFont/

it's super easy, just hear me out! Metadata goes up there (These are the ones supported right now, more to come), and structure goes in like this:

  • If it's a folder, suffix it with a /.
  • If it's a nested folder, just indent it under it's parent folder.
  • If it's a file, leave it as an entry.
  • Even better, you can add a path value to a reference file that will be cloned to your new structure!

And voila!, You got yourself an easy way to get started with your new project without the hassle of doing all of that boiler plate process.

And now, you can check all your newly defined templates with:

flutter_templify templates ls

2. Create a new flutter project

Now for the cool part, Here is how you quickly get up and running with a new project:

flutter_templify create -t awesome-template -n my_awesome_project

wherever your terminal location is, the new project folder will be created, structured, validated, and ready for you to dive in!

Developer Experience #

flutter_templify is built with developers in mind, providing:

  • Streamlined Setup: Spend less time configuring and more time building.
  • Minimal Boilerplate: Start new projects with a fully structured template.
  • Extensibility: Easily extend or modify templates to suit your workflow.

Featurs and Requests #

  • ✅ YAML-based project creation.
  • ❌ Dynamic placeholders inside of your reference files to substitute with metada ( e.g project name, version, etc.. )
  • ❌ You tell me!

Powered by darted_cli #

flutter_templify is built on top of the robust and flexible darted_cli framework. darted_cli makes it easy to create structured, feature-rich command-line interfaces in Dart with minimal effort.

Why darted_cli?

  • Provides a strong foundation for parsing commands, arguments, and flags.
  • Simplifies CLI development with tools like interactive prompts, formatted console outputs, and custom error handling.
  • Focused on developer experience, ensuring easy scalability and customization.

Explore darted_cli to learn how you can build your own powerful CLI tools with Dart!

License #

Licensed under the MIT License. You are free to use, modify, and distribute this package.

2
likes
160
pub points
0%
popularity

Publisher

verified publishermicazi.dev

flutter_templify is a customizable CLI tool for managing Flutter app templates with YAML-based project definitions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

darted_cli

More

Packages that depend on flutter_templify