zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

flutter 自己写一个组件

flutter组件 一个 自己
2023-09-14 09:04:28 时间

在这里插入图片描述
其实这个也是一个类来的
在这里插入图片描述
又或者说,弹窗里面添加一个页面

///弹出留言窗口
showChatDialog(context, int state, int index,
    {required ChatDialogModel chatDialogModel}) {
  showModalBottomSheet(
          shape: const RoundedRectangleBorder(
              borderRadius: BorderRadius.only(
                  topLeft: Radius.circular(24), topRight: Radius.circular(24))),
          isScrollControlled: true,
          enableDrag: false,
          backgroundColor: CommonColors.getColorF5F8F5,
          context: context,
          builder: (context) =>
              ChatDialog(state, index, chatDialogModel: chatDialogModel))//ChatDialog就是一个页面来的
      .then((value) {
    EventBusUtil.fire(
        OnCloseBottleRefresh(CloudCustomDataBean.TYPE_DRIFT_BOTTLE));
  });
}