tuiBuild method

  1. @override
Widget tuiBuild(
  1. BuildContext context,
  2. TUIKitBuildValue value
)
override

Implementation

@override
Widget tuiBuild(BuildContext context, TUIKitBuildValue value) {
  final theme = value.theme;
  final conversationType = conversation.type;
  final option1 = conversation.showName ??
      (conversationType == 2 ? TIM_t("群聊") : TIM_t("会话"));

  return Row(
    mainAxisSize: MainAxisSize.max,
    children: [
      Expanded(
          child: Opacity(
        opacity: 0.85,
        child: Container(
          color: theme.wideBackgroundColor,
          padding: const EdgeInsets.all(40),
          child: DottedBorder(
            borderType: BorderType.RRect,
            radius: const Radius.circular(20),
            color: theme.primaryColor ?? theme.weakTextColor!,
            dashPattern: const [6, 3],
            child: Row(
              children: [
                Expanded(
                    child: Column(
                  mainAxisSize: MainAxisSize.max,
                  mainAxisAlignment: MainAxisAlignment.center,
                  crossAxisAlignment: CrossAxisAlignment.center,
                  children: [
                    Icon(
                      Icons.file_copy_outlined,
                      size: 60,
                      color: theme.primaryColor,
                    ),
                    const SizedBox(
                      height: 40,
                    ),
                    Text(
                      TIM_t_para("发送给{{option1}}", "发送给$option1")(
                          option1: option1),
                      style: TextStyle(
                          fontSize: 16,
                          fontWeight: FontWeight.w600,
                          color: theme.darkTextColor),
                    )
                  ],
                ))
              ],
            ),
          ),
        ),
      ))
    ],
  );
}