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();
    },
),