Add Widgetbook setup with theme configuration, analysis options, and initial component use cases

This commit is contained in:
Emily Pauli 2025-10-25 22:59:48 +02:00
commit 80ca8f665a
46 changed files with 6031 additions and 2 deletions

View file

@ -0,0 +1,8 @@
include: ../../analysis_options.yaml
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "lib/widgetbook/**"
- "lib/**/widgetbook/**"

View file

@ -415,8 +415,12 @@ class _NavigationRailM3EState extends State<NavigationRailM3E>
for (final dest in section.destinations) {
final index = _destinationIndex(widget.sections, dest);
children.add(Padding(
padding: const EdgeInsetsDirectional.only(
start: 16, end: 16, top: 8.0, bottom: 8.0),
padding: EdgeInsetsDirectional.only(
start: 16,
end: 16,
top: theme.itemVerticalGap,
bottom: theme.itemVerticalGap,
),
child: RailItem(
destination: dest,
selected: index == widget.selectedIndex,