defaultBuilder method

  1. @override
Widget defaultBuilder(
  1. BuildContext context
)
override

Default builder for the widget, which is necessary and must been override.

Implementation

@override
Widget defaultBuilder(BuildContext context) {
  return TencentCloudChatThemeWidget(
    build: (context, colorTheme, textStyle) => Scaffold(
      appBar: AppBar(
        leadingWidth: getWidth(100),
        leading: const TencentCloudChatContactLeading(),
        title: Text(
          tL10n.numNewApplications(widget.applicationList.length),
          style: TextStyle(fontSize: textStyle.fontsize_16, fontWeight: FontWeight.w600, color: colorTheme.contactItemFriendNameColor),
        ),
        centerTitle: true,
        backgroundColor: colorTheme.contactBackgroundColor,
      ),
      body: Container(
        color: colorTheme.contactApplicationBackgroundColor,
        child: Center(
          child: TencentCloudChatContactApplicationList(applicationList: widget.applicationList),
        ),
      ),
    ),
  );
}