Skip to content

Sort (popMenu) not showing in mobile view  #2

Description

@nasibudesign

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(...) ], ); }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions