Skip to content

Popup menu button: allow custom image icon #18205

Closed

Description

I've tried to put an ImageIcon in a PopupMenuButton but flutter doesn't allow me.
So, I've changed line 863 from popup_menu.dart file:

final Icon icon; to final Widget icon;

And it worked. I don't know if it's ok, so, please review it.

Activity

  1. ghost changed the title [-]Popup menu button, allow custom image icon[/-] [+]Popup menu button: allow custom image icon[/+] on Jun 5, 2018
  2. goderbauer commented on Jun 7, 2018

    @goderbauer
    Member

    You could send a pull request with your change to see what other people think about it.

  3. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    on Jun 7, 2018
  4. ghost closed this as completedon Jun 19, 2018
  5. braysonjohn148 commented on Aug 27, 2019

    @braysonjohn148

    you can add a child: Image(....), this worked for me

  6. github-actions commented on Aug 11, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Aug 11, 2021
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

    frameworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions