This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flutter run -d chrome -t lib/widgetbook.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// single app | |
flutter_app | |
└─── lib | |
| └─── feature.dart | |
│ └─── main.dart | |
│ └─── widgetbook.dart | |
│ └─── widgetbook.directories.g.dart | |
└─── pubspec.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 'widgetbook.directories.g.dart' | |
// coverage:ignore-file | |
// ignore_for_file: type=lint | |
// ignore_for_file: unused_import, prefer_relative_imports, directives_ordering | |
// GENERATED CODE - DO NOT MODIFY BY HAND | |
// ************************************************************************** | |
// AppGenerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flutter pub run build_runner build — delete-conflicting-outputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flutter_app | |
└─── lib | |
| └─── feature.dart | |
│ └─── main.dart | |
│ └─── widgetbook.dart | |
└─── pubspec.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:widgetbook/widgetbook.dart'; | |
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook; | |
import 'widgetbook.directories.g.dart'; | |
void main() => runApp(const WidgetbookApp()); | |
@widgetbook.App() | |
class WidgetbookApp extends StatelessWidget { | |
const WidgetbookApp({super.key}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
widgetbook_annotation: ^3.0.0 | |
dev_dependencies: | |
widgetbook: ^3.0.0 | |
widgetbook_generator: ^3.0.0 | |
build_runner: |
NewerOlder