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) => Material(
color: colorTheme.contactTabItemBackgroundColor,
child: InkWell(
onTap: widget.item.onTap,
child: Container(
padding: EdgeInsets.symmetric(vertical: getHeight(12), horizontal: getWidth(16)),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(color: colorTheme.contactItemTabItemBorderColor),
),
),
child: Row(
children: [
Icon(
widget.item.icon,
color: colorTheme.primaryColor,
size: 20,
),
Expanded(
child: Container(
padding: EdgeInsets.only(left: getWidth(12)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
widget.item.name,
style: TextStyle(fontSize: textStyle.fontsize_14, color: colorTheme.secondaryTextColor),
),
Expanded(
child: Container(),
),
getUnreadCount(),
Icon(
Icons.keyboard_arrow_right,
color: colorTheme.contactItemTabItemNameColor,
)
],
),
),
),
],
),
),
),
),
);
}