mirror of
https://github.com/flutter/samples.git
synced 2026-04-18 21:12:29 +00:00
Cascading context menu (#1501)
This commit is contained in:
committed by
GitHub
parent
f8117cc885
commit
e93776ae04
@@ -2,6 +2,7 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'anywhere_page.dart';
|
||||
import 'cascading_menu_page.dart';
|
||||
import 'custom_buttons_page.dart';
|
||||
import 'default_values_page.dart';
|
||||
import 'email_button_page.dart';
|
||||
@@ -66,6 +67,8 @@ class _MyAppState extends State<MyApp> {
|
||||
GlobalSelectionPage(onChangedPlatform: onChangedPlatform),
|
||||
DefaultValuesPage.route: (BuildContext context) =>
|
||||
DefaultValuesPage(onChangedPlatform: onChangedPlatform),
|
||||
CascadingMenuPage.route: (BuildContext context) =>
|
||||
CascadingMenuPage(onChangedPlatform: onChangedPlatform),
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -137,6 +140,11 @@ class MyHomePage extends StatelessWidget {
|
||||
title: DefaultValuesPage.title,
|
||||
subtitle: DefaultValuesPage.subtitle,
|
||||
),
|
||||
_MyListItem(
|
||||
route: CascadingMenuPage.route,
|
||||
title: CascadingMenuPage.title,
|
||||
subtitle: CascadingMenuPage.subtitle,
|
||||
),
|
||||
_MyListItem(
|
||||
route: FullPage.route,
|
||||
title: FullPage.title,
|
||||
|
||||
Reference in New Issue
Block a user