flutter_div 0.0.1 copy "flutter_div: ^0.0.1" to clipboard
flutter_div: ^0.0.1 copied to clipboard

简单易用flutter的div布局组件

Div小部件 #

这个小部件只是容器小部件的包装器,它有一个手势检测器和行、列构造函数。 它也把第一个论点当作一个或多个孩子来使用

使用方法 #

基本用法: #

Div(
  Text('Hello div'),
),
Div(
  Text('Hello div'),
  style: DivStyle(
    margin:[10, 10, 10, 10],
    // 还有更多
  ),
),
Div.row([
    Text('Hello div'),
    Text('Hello div'),
],),
Div.col([
    Text('Hello div'),
    Text('Hello div'),
],),
Div.list(
    onLoad: (page, items, refresh) async{
        return false;
    },
    itemBuilder: (BuildContext context, item, int index) {
        return Container();
    },
),
0
likes
130
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

简单易用flutter的div布局组件

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_div