fgen 0.0.1+4 fgen: ^0.0.1+4 copied to clipboard
A command-line application to generate screens, viewmodels and repositories in the Flutter icapps template
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate fgen
Use it
The package has the following executables:
$ fgen
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add fgen
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
fgen: ^0.0.1+4
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:fgen/code/code_generator_class.dart';
import 'package:fgen/code/generate_code.dart';
import 'package:fgen/code/navigator.dart';
import 'package:fgen/code/repository.dart';
import 'package:fgen/code/screen.dart';
import 'package:fgen/code/service.dart';
import 'package:fgen/code/viewmodel.dart';
import 'package:fgen/code/webservice.dart';
import 'package:fgen/main.dart';
import 'package:fgen/util/flutter_helper.dart';
import 'package:fgen/util/pubspec_utils.dart';
import 'package:fgen/util/string_extension.dart';