mive_route 2.0.1
mive_route: ^2.0.1 copied to clipboard
A powerful command-line tool for generating Go Router configuration files in Dart/Flutter projects. Automate the creation and management of typed routes with automatic code generation.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate mive_routeUse it
The package has the following executables:
$ mive_routes
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add mive_routeWith Flutter:
$ flutter pub add mive_routeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
mive_route: ^2.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mive_route/data/file_writer.dart';
import 'package:mive_route/data/repositories/file_system_route_repository.dart';
import 'package:mive_route/data/template_generator.dart';
import 'package:mive_route/domain/entities/route_entity.dart';
import 'package:mive_route/domain/repositories/route_repository.dart';
import 'package:mive_route/presentation/cli/ascii_art_generator.dart';
import 'package:mive_route/presentation/route_generator.dart';
import 'package:mive_route/use_cases/generate_route_use_case.dart';