w_popup_menu

A pop-up menu that mimics the iOS WeChat page.

0.3.0

  • 修改弹出方式为 Overlay,为了解决弹出菜单时输入框会收起的问题

0.2.5

  • 修复位置弹出错误的问题

0.2.4

  • 修复了menu朝下时位置计算错误的问题。
  • 更改了弹出的逻辑,更加友好。

0.2.3

  • 更新了「WPopupMenu」的构造函数,现在「WPopupMenu」的构造函数是和 「Container」一样的,在内部封装了一个Container,如果想要什么属性,例如margin的话,请直接在「WPopupMenu」的属性中添加,否则控件获取不到你的margin。

Getting Started

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  w_popup_menu: ^0.3.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:w_popup_menu/w_popup_menu.dart';

Libraries

main
triangle_painter
w_popup_menu

Dart

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.