widgetbook_generator 3.1.0 copy "widgetbook_generator: ^3.1.0" to clipboard
widgetbook_generator: ^3.1.0 copied to clipboard

A package to automate setup and maintenance of the widgetbook package by using code generation.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add widgetbook_generator

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

dependencies:
  widgetbook_generator: ^3.1.0

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:widgetbook_generator/builder.dart';
import 'package:widgetbook_generator/extensions/element_extensions.dart';
import 'package:widgetbook_generator/extensions/json_list_formatter.dart';
import 'package:widgetbook_generator/generators/app_generator.dart';
import 'package:widgetbook_generator/generators/json_builder.dart';
import 'package:widgetbook_generator/generators/tree_service.dart';
import 'package:widgetbook_generator/generators/use_case_resolver.dart';
import 'package:widgetbook_generator/instances/base_instance.dart';
import 'package:widgetbook_generator/instances/boolean_instance.dart';
import 'package:widgetbook_generator/instances/instance.dart';
import 'package:widgetbook_generator/instances/lambda_instance.dart';
import 'package:widgetbook_generator/instances/list_instance.dart';
import 'package:widgetbook_generator/instances/primary_instance.dart';
import 'package:widgetbook_generator/instances/property.dart';
import 'package:widgetbook_generator/instances/string_instance.dart';
import 'package:widgetbook_generator/instances/widgetbook_category_instance.dart';
import 'package:widgetbook_generator/instances/widgetbook_folder_instance.dart';
import 'package:widgetbook_generator/instances/widgetbook_use_case_instance.dart';
import 'package:widgetbook_generator/instances/widgetbook_widget_instance.dart';
import 'package:widgetbook_generator/models/generated_output.dart';
import 'package:widgetbook_generator/models/widgetbook_data.dart';
import 'package:widgetbook_generator/models/widgetbook_use_case_data.dart';