diff --git a/examples/material_gallery/lib/demo/toggle_controls_demo.dart b/examples/material_gallery/lib/demo/selection_controls_demo.dart similarity index 90% rename from examples/material_gallery/lib/demo/toggle_controls_demo.dart rename to examples/material_gallery/lib/demo/selection_controls_demo.dart index 2b3759b5f5..37415a9267 100644 --- a/examples/material_gallery/lib/demo/toggle_controls_demo.dart +++ b/examples/material_gallery/lib/demo/selection_controls_demo.dart @@ -4,12 +4,12 @@ import 'package:flutter/material.dart'; -class ToggleControlsDemo extends StatefulWidget { +class SelectionControlsDemo extends StatefulWidget { @override - _ToggleControlsDemoState createState() => new _ToggleControlsDemoState(); + _SelectionControlsDemoState createState() => new _SelectionControlsDemoState(); } -class _ToggleControlsDemoState extends State { +class _SelectionControlsDemoState extends State { bool _checkboxValue = false; int _radioValue = 0; bool _switchValue = false; diff --git a/examples/material_gallery/lib/gallery/home.dart b/examples/material_gallery/lib/gallery/home.dart index 1e3ff2bbc1..d33ab2840f 100644 --- a/examples/material_gallery/lib/gallery/home.dart +++ b/examples/material_gallery/lib/gallery/home.dart @@ -27,7 +27,7 @@ import '../demo/menu_demo.dart'; import '../demo/page_selector_demo.dart'; import '../demo/persistent_bottom_sheet_demo.dart'; import '../demo/progress_indicator_demo.dart'; -import '../demo/toggle_controls_demo.dart'; +import '../demo/selection_controls_demo.dart'; import '../demo/slider_demo.dart'; import '../demo/snack_bar_demo.dart'; import '../demo/scrollable_tabs_demo.dart'; @@ -105,7 +105,7 @@ class GalleryHomeState extends State { new GalleryItem(title: 'Persistent Bottom Sheet', builder: () => new PersistentBottomSheetDemo()), new GalleryItem(title: 'Progress Indicators', builder: () => new ProgressIndicatorDemo()), new GalleryItem(title: 'Scrollable Tabs', builder: () => new ScrollableTabsDemo()), - new GalleryItem(title: 'Selection Controls', builder: () => new ToggleControlsDemo()), + new GalleryItem(title: 'Selection Controls', builder: () => new SelectionControlsDemo()), new GalleryItem(title: 'Sliders', builder: () => new SliderDemo()), new GalleryItem(title: 'SnackBar', builder: () => new SnackBarDemo()), new GalleryItem(title: 'Tabs', builder: () => new TabsDemo()),