popup_menu_title 1.1.0-nullsafety.1 copy "popup_menu_title: ^1.1.0-nullsafety.1" to clipboard
popup_menu_title: ^1.1.0-nullsafety.1 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
130
pub points
38%
popularity

Publisher

verified publisherhacker1024.tk

A PopupMenuEntry implementation to show a title.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on popup_menu_title