flutter_adaptive_components 0.0.4 copy "flutter_adaptive_components: ^0.0.4" to clipboard
flutter_adaptive_components: ^0.0.4 copied to clipboard

discontinued
outdated

根据平台自适应的部件,新增合并单元格

flutter_adaptive_components #

根据平台自适应的部件

例子 #

弹出alert弹窗:

    showAdaptiveAlert(
        context: context,
        style: AdaptiveStyle.adaptive,
        title: Text('标题'),
        content: Text('这是alert_dialog的内容'),
        leftText: Text('确认'),
        rightText: Text('取消'),
    );

弹出Okalert弹窗:

    showAdaptiveOK(
        context: context,
        style: AdaptiveStyle.adaptive,
        title: Text('标题'),
        content: Text('这是ok_dialog的内容'),
        buttontext: Text('确认'),
    );

使用底部弹窗

    showAdaptiveSheet(
        context: context,
        style: AdaptiveStyle.adaptive,
        maxheight: 400,
        isSafeArea: true,
        content: Column(
        children: [
            Container(
            height: 400,
            color: Theme.of(context).primaryColor,
            ),
        ],
        ),
    );

使用customtable-垂直合并

    CustomTable(
    tableTitle: tableTitle,
    verticalTableContent: verticalTableContent,
    tableMarge: 1,
    tableAxis: Axis.vertical,
    tableHeight: 30.0,
    ),

使用customtable-水平合并

    CustomTable(
        tableTitle: tableTitle,
        verticalTableContent: verticalTableContent,
        tableMarge: 1,
        tableAxis: Axis.horizontal,
        tableHeight: 30.0,
    ),

查看完整源码

1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

根据平台自适应的部件,新增合并单元格

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_adaptive_components