forked from mirrors/material_3_expressive
Add Widgetbook setup with theme configuration, analysis options, and initial component use cases
This commit is contained in:
parent
d3ad4b9c9d
commit
80ca8f665a
46 changed files with 6031 additions and 2 deletions
|
|
@ -0,0 +1 @@
|
|||
|
||||
8
packages/loading_indicator_m3e/analysis_options.yaml
Normal file
8
packages/loading_indicator_m3e/analysis_options.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
include: ../../analysis_options.yaml
|
||||
|
||||
analyzer:
|
||||
exclude:
|
||||
- "**/*.g.dart"
|
||||
- "**/*.freezed.dart"
|
||||
- "lib/widgetbook/**"
|
||||
- "lib/**/widgetbook/**"
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue