بدون توضیح

Im-Kevin a695b4a34e Update README.md 6 سال پیش
android 39452ddefe 添加了Popover的案例 6 سال پیش
example 39452ddefe 添加了Popover的案例 6 سال پیش
images 39452ddefe 添加了Popover的案例 6 سال پیش
lib 39452ddefe 添加了Popover的案例 6 سال پیش
test 2c03dc00eb 添加了Popover组件 6 سال پیش
.gitignore 2c03dc00eb 添加了Popover组件 6 سال پیش
.metadata 6337bc508f 添加的Popover组件 6 سال پیش
CHANGELOG.md 6337bc508f 添加的Popover组件 6 سال پیش
LICENSE aae3ec75f9 Create LICENSE 6 سال پیش
README.md a695b4a34e Update README.md 6 سال پیش
cool_ui.iml 6337bc508f 添加的Popover组件 6 سال پیش
pubspec.lock 39452ddefe 添加了Popover的案例 6 سال پیش
pubspec.yaml 39452ddefe 添加了Popover的案例 6 سال پیش

README.md

cool_ui

一套很酷的UI控件

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

dependencies:
  cool_ui: "^0.0.7"

CupertinoPopover

仿iOS的UIPopover

Image text

案例核心代码

CupertinoPopoverButton(
        child: Container(
          margin: EdgeInsets.all(20.0),
          width: 80.0,
          height: 40.0,
          decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.all(Radius.circular(5.0)),
              boxShadow: [BoxShadow(color: Colors.black12,blurRadius: 5.0)]
          ),
          child: Center(child:Text('左上角')),
        ),
        popoverBody:Container(
          width: 100.0,
          height: 100.0,
          child: Text('左上角内容'),
        ),
        popoverWidth: 100.0,
        popoverHeight: 100.0);
  }