Move dropdownValue into State in sample (#33665)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user