widgetbook_generator 3.0.0-rc.1 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.
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;
},
);
}
}