Add a simplified SimpleCascadingMenuApp example (#149147)
The current MenuAnchor example in the API Docs is comprehensive and complicated for beginners. I have added a simple bare bone example without shortcuts, enums, etc in examples/api/lib/material/menu_anchor/ as `menu_anchor.3.dart`. The example is contributed by @mafreud Fixes https://github.com/flutter/flutter/issues/148104
This commit is contained in:
@@ -119,6 +119,13 @@ typedef MenuAnchorChildBuilder = Widget Function(
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/menu_anchor/menu_anchor.1.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example demonstrates a simplified cascading menu using the [MenuAnchor]
|
||||
/// widget.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/menu_anchor/menu_anchor.3.dart **
|
||||
/// {@end-tool}
|
||||
class MenuAnchor extends StatefulWidget {
|
||||
/// Creates a const [MenuAnchor].
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user