flutter_cli_tool 1.0.0+0 copy "flutter_cli_tool: ^1.0.0+0" to clipboard
flutter_cli_tool: ^1.0.0+0 copied to clipboard

A Dart CLI tool to generate features and models for Flutter apps (currently works with bloc and go router).

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate flutter_cli_tool

Use it

The package has the following executables:

$ flutter_cli_tool

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_cli_tool

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_cli_tool: ^1.0.0+0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:flutter_cli_tool/config/routes.dart';
import 'package:flutter_cli_tool/features/home/bloc/home_bloc.dart';
import 'package:flutter_cli_tool/features/home/bloc/home_event.dart';
import 'package:flutter_cli_tool/features/home/bloc/home_state.dart';
import 'package:flutter_cli_tool/features/home/pages/home_page.dart';
import 'package:flutter_cli_tool/features/test_user/bloc/test_user_bloc.dart';
import 'package:flutter_cli_tool/features/test_user/bloc/test_user_event.dart';
import 'package:flutter_cli_tool/features/test_user/bloc/test_user_state.dart';
import 'package:flutter_cli_tool/features/test_user/pages/test_user_page.dart';
import 'package:flutter_cli_tool/main.dart';
1
likes
140
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart CLI tool to generate features and models for Flutter apps (currently works with bloc and go router).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, bloc, cupertino_icons, flutter, flutter_bloc, go_router

More

Packages that depend on flutter_cli_tool