menu 0.1.2 copy "menu: ^0.1.2" to clipboard
menu: ^0.1.2 copied to clipboard

outdated

menu with flutter, just wrap your widget ,and long tap to show menu

menu #

pub package GitHub

menu with flutter

just wrap your widget ,and long tap to show menu

like this:

img

Usage #

import 'package:menu/menu.dart';

Menu(
  child: Container(
    width: 200,
    color: Colors.yellow,
    height: 100,
    child: Text("long press show menu"),
  ),
  items: [
    MenuItem("copy", () {}),
    MenuItem("add", _incrementCounter),
  ],
  decoration: MenuDecoration(
    itemConstraints: BoxConstraints(),
  ),
);

params #

Params Type Required Describe
child Widget true widget
items List true options
decoration MenuDecoration false decoration for menu and item
itemBuilder ItemBuilder false customItem
Params Type Required Describe
text string true
onTap Function true onTap
Params Type Required Describe
textStyle TextStyle false style of menu item
color Color false color of menu item
splashColor Color false splashColor of menu item
radius doule false radius of menu item, only first and last item
constraints BoxConstraints false constraints of menu item
padding TextStyle false padding of menu item'text
9
likes
0
pub points
59%
popularity

Publisher

unverified uploader

menu with flutter, just wrap your widget ,and long tap to show menu

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on menu