Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update value from outside the plugin doesn't work #120

Open
abdugaliyev opened this issue Nov 20, 2023 · 0 comments
Open

Update value from outside the plugin doesn't work #120

abdugaliyev opened this issue Nov 20, 2023 · 0 comments

Comments

@abdugaliyev
Copy link

Mi 8 Android 10
sdk: '>=3.0.2 <4.0.0'
"Update value from outside the plugin": Column(
children: [
SearchChoices.single(
items: items,
value: selectedValueUpdateFromOutsideThePlugin,
hint: const Text('Select One'),
searchHint: const Text(
'Select One',
style: TextStyle(fontSize: 20),
),
onChanged: (value) {
setState(() {
selectedValueUpdateFromOutsideThePlugin = value;
});
},
isExpanded: true,
),
TextButton(
child: const Text("Select dolor sit"),
onPressed: () {
setState(() {
selectedValueUpdateFromOutsideThePlugin = "dolor sit";
});
},
),
],
),
setState(() {
selectedValueUpdateFromOutsideThePlugin = "dolor sit";
});

          this work fine, but doesnt render changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant