diff --git a/example/assets/code_snippets/combobox.md b/example/assets/code_snippets/combobox.md index 79fdfc0d..9b938ef6 100644 --- a/example/assets/code_snippets/combobox.md +++ b/example/assets/code_snippets/combobox.md @@ -37,14 +37,14 @@ extension OptionsX on Options { } } -class ComboboxStory extends StatefulWidget { - const ComboboxStory({super.key}); +class Combobox extends StatefulWidget { + const Combobox({super.key}); @override - State createState() => _ComboboxStoryState(); + State createState() => _ComboboxState(); } -class _ComboboxStoryState extends State { +class _ComboboxState extends State { final Map _optionsList = { Options.accordion: false, Options.alert: false, diff --git a/example/assets/code_snippets/modal.md b/example/assets/code_snippets/modal.md index d5d7e3bb..d7d1d612 100644 --- a/example/assets/code_snippets/modal.md +++ b/example/assets/code_snippets/modal.md @@ -9,7 +9,7 @@ class Modal extends StatelessWidget { Future modalBuilder(BuildContext context) { return showMoonModal( context: context, - builder: (BuildContext _) { + builder: (BuildContext context) { return MoonModal( child: SizedBox( height: 150, @@ -23,13 +23,15 @@ class Modal extends StatelessWidget { ); } - return Builder( - builder: (BuildContext context) { - return MoonFilledButton( - label: const Text("Open MoonModal"), - onTap: () => modalBuilder(context), - ); - }, + return Center( + child: Builder( + builder: (BuildContext context) { + return MoonFilledButton( + label: const Text("Open MoonModal"), + onTap: () => modalBuilder(context), + ); + }, + ), ); } } \ No newline at end of file