Skip to content

Instantly share code, notes, and snippets.

@Khanin-devmode
Last active December 12, 2023 14:47
Show Gist options
  • Save Khanin-devmode/c0174f9a623dfc2bc8660dcf85d211d8 to your computer and use it in GitHub Desktop.
Save Khanin-devmode/c0174f9a623dfc2bc8660dcf85d211d8 to your computer and use it in GitHub Desktop.
Widget book example in one file
import 'package:flutter/material.dart';
import 'package:widgetbook/widgetbook.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return Widgetbook.material(directories: []);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment