Move dropdownValue into State in sample (#33665)

This commit is contained in:
Shi-Hao Hong
2019-06-03 16:22:16 -07:00
committed by GitHub
parent ef792fc30d
commit 3b75fbe31d

View File

@@ -535,11 +535,10 @@ class DropdownButtonHideUnderline extends InheritedWidget {
/// This sample shows a `DropdownButton` whose value is one of
/// "One", "Two", "Free", or "Four".
///
/// ```dart preamble
/// String dropdownValue = 'One';
/// ```
///
/// ```dart
/// String dropdownValue = 'One';
///
/// @override
/// Widget build(BuildContext context) {
/// return Scaffold(
/// body: Center(