forked from mirrors/material_3_expressive
Refactor NavigationRailM3E to simplify rail types; update badge handling and expand functionality of navigation components.
This commit is contained in:
parent
83f5a02943
commit
5b27a91894
20 changed files with 360 additions and 486 deletions
|
|
@ -33,6 +33,24 @@ class IconButtonSection extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
],
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Text('with badgeValue',
|
||||
style: Theme.of(context).textTheme.titleMedium),
|
||||
),
|
||||
Row(
|
||||
spacing: 12,
|
||||
children: [
|
||||
for (final size in IconButtonM3ESize.values)
|
||||
IconButtonM3E(
|
||||
icon: const Icon(Icons.favorite),
|
||||
variant: IconButtonM3EVariant.filled,
|
||||
size: size,
|
||||
onPressed: () {},
|
||||
badgeValue: size.index + 1,
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue