buildSubtitle method
- dynamic context,
- 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,
),
),
],
);
}