desktopBuilder method
Builder for desktop platform (both desktop app and desktop web).
Use this builder to customize the widget appearance and behavior for desktop platform in general.
Implementation
@override
Widget desktopBuilder(BuildContext context) {
return TencentCloudChatThemeWidget(
build: (context, colorTheme, textStyle) => Scaffold(
appBar: AppBar(
title: Text(
tL10n.numNewApplications(widget.applicationList.length),
style: TextStyle(fontSize: textStyle.fontsize_16, fontWeight: FontWeight.w600, color: colorTheme.contactItemFriendNameColor),
),
centerTitle: false,
backgroundColor: colorTheme.contactBackgroundColor,
),
body: Container(
color: colorTheme.contactApplicationBackgroundColor,
child: Center(
child: TencentCloudChatContactApplicationList(applicationList: widget.applicationList),
),
),
),
);
}