Commit 42d87c41 authored by Adam Barth's avatar Adam Barth

Rename ToggleControlsDemo to SelectionControlsDemo

These are called selection controls in the spec and in the gallery UI.
parent db9a92e5
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class ToggleControlsDemo extends StatefulWidget { class SelectionControlsDemo extends StatefulWidget {
@override @override
_ToggleControlsDemoState createState() => new _ToggleControlsDemoState(); _SelectionControlsDemoState createState() => new _SelectionControlsDemoState();
} }
class _ToggleControlsDemoState extends State<ToggleControlsDemo> { class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
bool _checkboxValue = false; bool _checkboxValue = false;
int _radioValue = 0; int _radioValue = 0;
bool _switchValue = false; bool _switchValue = false;
......
...@@ -27,7 +27,7 @@ import '../demo/menu_demo.dart'; ...@@ -27,7 +27,7 @@ import '../demo/menu_demo.dart';
import '../demo/page_selector_demo.dart'; import '../demo/page_selector_demo.dart';
import '../demo/persistent_bottom_sheet_demo.dart'; import '../demo/persistent_bottom_sheet_demo.dart';
import '../demo/progress_indicator_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/slider_demo.dart';
import '../demo/snack_bar_demo.dart'; import '../demo/snack_bar_demo.dart';
import '../demo/scrollable_tabs_demo.dart'; import '../demo/scrollable_tabs_demo.dart';
...@@ -105,7 +105,7 @@ class GalleryHomeState extends State<GalleryHome> { ...@@ -105,7 +105,7 @@ class GalleryHomeState extends State<GalleryHome> {
new GalleryItem(title: 'Persistent Bottom Sheet', builder: () => new PersistentBottomSheetDemo()), new GalleryItem(title: 'Persistent Bottom Sheet', builder: () => new PersistentBottomSheetDemo()),
new GalleryItem(title: 'Progress Indicators', builder: () => new ProgressIndicatorDemo()), new GalleryItem(title: 'Progress Indicators', builder: () => new ProgressIndicatorDemo()),
new GalleryItem(title: 'Scrollable Tabs', builder: () => new ScrollableTabsDemo()), 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: 'Sliders', builder: () => new SliderDemo()),
new GalleryItem(title: 'SnackBar', builder: () => new SnackBarDemo()), new GalleryItem(title: 'SnackBar', builder: () => new SnackBarDemo()),
new GalleryItem(title: 'Tabs', builder: () => new TabsDemo()), new GalleryItem(title: 'Tabs', builder: () => new TabsDemo()),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment