popup_menu_title 1.0.0 copy "popup_menu_title: ^1.0.0" to clipboard
popup_menu_title: ^1.0.0 copied to clipboard

A PopupMenuEntry implementation to show a title.

popup_menu_title #

A Flutter package to provide a popup menu title.

Usage #

import 'package:popup_menu_title/popup_menu_title.dart';

final menuItemList = [
  PopupMenuTitle(
    title: 'Popup menu title',
    overflow: TextOverflow.fade,
    // The text style below is the default style, but is specified
    // here as an example of how to do so.
    textStyle: TextStyle(
      fontWeight: FontWeight.w600,
      color: Theme
          .of(context)
          .primaryColor,
    ),
  ),
  PopupMenuItem<void>(child: const Text('Item 1')),
  PopupMenuItem<void>(child: const Text('Item 2')),
  PopupMenuItem<void>(child: const Text('Item 3')),
];
2
likes
30
pub points
24%
popularity

Publisher

verified publisherhacker1024.tk

A PopupMenuEntry implementation to show a title.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on popup_menu_title