Add global WIDGETBOOK-INDEX.md and refactor use case method names for consistency across components
This commit is contained in:
parent
80ca8f665a
commit
f135a6a5f7
10 changed files with 49 additions and 19 deletions
|
|
@ -12,7 +12,7 @@ import 'package:widgetbook_annotation/widgetbook_annotation.dart';
|
|||
// - Complex objects get meaningful defaults with TODOs.
|
||||
|
||||
@UseCase(name: 'default', type: IconButtonM3E)
|
||||
Widget buildIconButtonM3EUseCase(BuildContext context) {
|
||||
Widget buildIconButtonM3EDefaultUseCase(BuildContext context) {
|
||||
final bool isToggle = context.knobs.boolean(
|
||||
label: 'is toggle (provides selected state)',
|
||||
initialValue: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue