buildSubtitle method

dynamic buildSubtitle(
  1. dynamic context,
  2. dynamic constraints
)

Implementation

Widget? buildSubtitle(BuildContext context, BoxConstraints constraints) {
  if (!showSuggestedMark) {
    return constraints.maxWidth < 300
        ? null
        : _SubtitleWidget(roomId: roomId);
  }

  return Row(
    children: [
      Text(
        L10n.of(context).suggested,
        style: Theme.of(context).textTheme.labelSmall,
      ),
      const SizedBox(width: 2),
      Expanded(
        child: _SubtitleWidget(
          roomId: roomId,
        ),
      ),
    ],
  );
}