• perlatus's avatar
    PopupMenuButton: create IconButton if child is Icon (#10230) · d1b222be
    perlatus authored
    * PopupMenuButton: create IconButton if child is Icon
    
    Otherwise the resulting button has an abnormally small and rectangular
    area. With multiple PopupMenuButton(child: Icon) they get squished
    together in the AppBar.
    
    * Add separate icon argument to PopupMenuButton
    
    * Fix style issues and tweak dartdocs
    
    * Add tests for icon argument to PopupMenuButton
    
    * Group icon tests and fix broken test, analyzer warnings
    
    * Test that the correct custom icon is present
    
    * Apply De Morgan's to work around dart analyzer bug
    
    see: https://github.com/dart-lang/sdk/issues/30288
    d1b222be
popup_menu_test.dart 4.23 KB