Closed hsa-online closed 1 month ago
I also tried to modify "fluent_ui" example like this:
DropDownButton(
title: Text('Email'),
items: [
MenuFlyoutItem(text: const Text('Send'), onPressed: () {}),
MenuFlyoutSeparator(),
MenuFlyoutItem(text: const Text('Reply'), onPressed: null),
MenuFlyoutItem(text: const Text('Reply all'), onPressed: () {}),
],
),
And here is the result:
Item "Reply" is expected to be disabled, but it is enabled.
System: Windows 11 Pro
Flutter 3.24.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5874a72aa4 (3 weeks ago) • 2024-08-20 16:46:00 -0500 Engine • revision c9b9d5780d Tools • Dart 3.5.1 • DevTools 2.37.2
Sorry, but I can not reproduce your main issue. What happens if you attach a GlobalKey
to it?
This fix solves the problem in fluent_ui example. And it seems in my code with Bloc there is also another problem not connected to fluent_ui. Thank you!
DropDownButton widget (and its menu) do not work properly in my app:
On clicking Test1 menu item the onActionTest1 handler is called but the drop-down menu remains open. Also Test2 menu item is enabled despite of its onPressed is null.
Clicking to Test2 menu item throws an error:
An app has nothing special, only as it uses the BLoC, widgets are added as children of BlocBuilder. Application build() looks like this:
Library version: fluent_ui: ^4.9.1