Unverified Commit 3b75fbe3 authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Move dropdownValue into State in sample (#33665)

parent ef792fc3
......@@ -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
/// ```dart
/// String dropdownValue = 'One';
/// ```
///
/// ```dart
/// @override
/// Widget build(BuildContext context) {
/// return Scaffold(
/// body: Center(
......
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