Created
August 8, 2023 12:17
-
-
Save AlenaNicolay/8ab22e4ed3282d128503c2bfc9d56762 to your computer and use it in GitHub Desktop.
Setting Up the Entry Point
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}); | |
@override | |
Widget build(BuildContext context) { | |
return Widgetbook.material(directories: directories); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment