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

Sort (popMenu) not showing in mobile view #2

Open
nasibudesign opened this issue May 21, 2024 · 0 comments
Open

Sort (popMenu) not showing in mobile view #2

nasibudesign opened this issue May 21, 2024 · 0 comments

Comments

@nasibudesign
Copy link

nasibudesign commented May 21, 2024

I found an issue where when in mobile we are not able to sort the table anymore as the condition to show the popMenu is conditioned with the showSelect boolean so I wonder, why not if it is possible to show the PopMenu for the sort in the mobileHeader widget ?

I read the code and I guess it can be modified like below?

something like this ?

mobileHeader( showSelect: widget.showSelect && widget.selecteds != null, showSort: (widget.onSort != null)),

Then the mobileHeader widget could look like this

Widget mobileHeader(bool? showSelect, bool? showSort) { return Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ if (showSelect==true) Checkbox(...), if(showSort==true) PopupMenuButton(...) ], ); }

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