f_popup_menu 0.0.3 copy "f_popup_menu: ^0.0.3" to clipboard
f_popup_menu: ^0.0.3 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
130
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A custom popup widget

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on f_popup_menu