8000 GitHub - c-zhuo/cool_ui: 用flutter实现一些我认为好看的UI控件,有觉得好看的UI控件可以提出来,我会考虑实现
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ cool_ui Public
forked from Im-Kevin/cool_ui

用flutter实现一些我认为好看的UI控件,有觉得好看的UI控件可以提出来,我会考虑实现

License

Notifications You must be signed in to change notification settings

c-zhuo/cool_ui

 
 

Repository files navigation

cool_ui pub package

用flutter实现一些我认为好看的UI控件,有觉得好看的UI控件可以提出来,我会考虑实现,

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

dependencies:
  cool_ui: "^0.1.0"

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);

CupertinoPopoverMenuList,CupertinoPopoverMenuItem

用于快速搭建一个弹出的菜单项

案例核心代码

    CupertinoPopoverMenuList(
                    children: <Widget>[
                      CupertinoPopoverMenuItem(leading: Icon(Icons.add),child: Text("新增"),),
                      CupertinoPopoverMenuItem(leading: Icon(Icons.edit),child: Text("修改"),),
                      CupertinoPopoverMenuItem(leading: Icon(Icons.delete),child: Text("删除"),)
                    ],
                  )

About

用flutter实现一些我认为好看的UI控件,有觉得好看的UI控件可以提出来,我会考虑实现

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 93.5%
  • Java 2.0%
  • Objective-C 1.9%
  • Swift 1.4%
  • Kotlin 1.2%
0