Rename ToggleControlsDemo to SelectionControlsDemo

These are called selection controls in the spec and in the gallery UI.
This commit is contained in:
Adam Barth 2016-03-30 23:28:22 -07:00
parent db9a92e59f
commit 42d87c4191
2 changed files with 5 additions and 5 deletions

View File

@ -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<ToggleControlsDemo> {
class _SelectionControlsDemoState extends State<SelectionControlsDemo> {
bool _checkboxValue = false;
int _radioValue = 0;
bool _switchValue = false;

View File

@ -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<GalleryHome> {
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()),