f_popup_menu 0.0.1 copy "f_popup_menu: ^0.0.1" to clipboard
f_popup_menu: ^0.0.1 copied to clipboard

A custom popup widget

  Widget build(BuildContext context) {
    return FPopupMenu(
      items: [
        FPopupItem(
          text: '测试1',
          icon: 'assets/me.png',
          iconSize: 20,
        ),
        FPopupItem(text: '测试2'),
        FPopupItem(text: '测试3'),
        FPopupItem(text: '测试4'),
      ],
      color: Colors.white,
      pressType: PressType.longPress,
      addDivider: true,
      child: Container(
        color: Colors.red,
        height: 80,
        width: MediaQuery.of(context).size.width,
        margin: const EdgeInsets.symmetric(vertical: 5),
        alignment: Alignment.center,
        child: Text(
          text,
          style: const TextStyle(
            color: Colors.white,
            fontSize: 20,
          ),
        ),
      ),
    );
  }
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A custom popup widget

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on f_popup_menu