Refactor progress indicators to use stateful widgets, enhance animation control, and remove unnecessary subtitles in section cards
This commit is contained in:
parent
687bca8817
commit
b4ccdd7750
11 changed files with 316 additions and 130 deletions
|
|
@ -11,20 +11,25 @@ class ToolbarSection extends StatelessWidget {
|
|||
final actions = [
|
||||
ToolbarActionM3E(icon: Icons.search, onPressed: () {}),
|
||||
ToolbarActionM3E(icon: Icons.share, onPressed: () {}),
|
||||
ToolbarActionM3E(icon: Icons.delete, onPressed: () {}, isDestructive: true, label: 'Delete'),
|
||||
ToolbarActionM3E(icon: Icons.settings, onPressed: () {}, label: 'Settings'),
|
||||
ToolbarActionM3E(
|
||||
icon: Icons.delete,
|
||||
onPressed: () {},
|
||||
isDestructive: true,
|
||||
label: 'Delete'),
|
||||
ToolbarActionM3E(
|
||||
icon: Icons.settings, onPressed: () {}, label: 'Settings'),
|
||||
];
|
||||
|
||||
return SectionCard(
|
||||
title: 'ToolbarM3E',
|
||||
subtitle: 'Generated from enums: variant × size (round shape).',
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
for (final variant in ToolbarM3EVariant.values) ...[
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Text(variant.name, style: Theme.of(context).textTheme.titleMedium),
|
||||
child: Text(variant.name,
|
||||
style: Theme.of(context).textTheme.titleMedium),
|
||||
),
|
||||
Wrap(
|
||||
runSpacing: 12,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue