Ahmed Elsayed

Results 201 comments of Ahmed Elsayed

> In your example [#296 (comment)](https://github.com/AhmedLSayed9/dropdown_button2/issues/296#issuecomment-2178993745) `value` will be `id` so when I need to do something with the output from dropdown I need to search again through > >...

> Could you be so kind and allow users to override comparison method? The thing is this how the core [DropdownButton](https://api.flutter.dev/flutter/material/DropdownButton-class.html) works and it's more familiar to users. Also, we...

Also, this will break the dropdown menu items consistency, as they use the same type specified for the DropdownButton. ``` /// The type `T` is the type of the value...

Furthermore, You'll have to set `valueListenable` that represents the value of the currently selected [DropdownItem] with the same value you set to the item. This means you'll still need to...

> What about the example with sealed classes? I've answered above.

@vasilich6107 Can you show an example of what you're trying to do? Maybe we're looking for a wrong solution after all (see https://xyproblem.info)

Take a look at my project [Deliverzler](https://github.com/AhmedLSayed9/deliverzler), it could be helpful. I’ve been using it in several medium and large production apps, and it’s been working great so far :)

@VergoEcho > [@AhmedLSayed9](https://github.com/AhmedLSayed9) , thank you for reply! Project looks hard to read, cause of mixed logic and views(widgets) in presentation layer, i'm looking for something more separated like **clean**...

That will be much better. I still use `.when` and avoid using `switch` because it's not intuitive, like I've to explain each case to my teammates and also they may...

> Chances are this should be the default of preferData. Won’t users think this would prefer data over error too? imo, we better introduce 2 different built-in getters here: 1....