widgetbook_generator 3.0.0-rc.1 copy "widgetbook_generator: ^3.0.0-rc.1" to clipboard
widgetbook_generator: ^3.0.0-rc.1 copied to clipboard

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

example/main.dart

import 'package:flutter/material.dart';
import 'package:widgetbook/widgetbook.dart';
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

import 'widgetbook.g.dart';

void main() {
  runApp(const WidgetbookApp());
}

@widgetbook.App()
class WidgetbookApp extends StatelessWidget {
  const WidgetbookApp();

  @override
  Widget build(BuildContext context) {
    return Widgetbook.material(
      directories: directories,
      addons: [],
      appBuilder: (context, child) {
        return child;
      },
    );
  }
}
13
likes
0
pub points
90%
popularity

Publisher

verified publisherwidgetbook.io

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

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

analyzer, build, collection, glob, json_annotation, meta, source_gen, widgetbook_annotation

More

Packages that depend on widgetbook_generator