Make course access titles wrap (#5584)
This commit is contained in:
parent
1417d8b944
commit
fbd31f1118
1 changed files with 7 additions and 6 deletions
|
|
@ -122,18 +122,19 @@ class ChatAccessTitle extends StatelessWidget {
|
|||
final theme = Theme.of(context);
|
||||
final isColumnMode = FluffyThemes.isColumnMode(context);
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
icon,
|
||||
size: isColumnMode ? 32.0 : 24.0,
|
||||
),
|
||||
SizedBox(width: isColumnMode ? 32.0 : 16.0),
|
||||
Text(
|
||||
title,
|
||||
style: isColumnMode
|
||||
? theme.textTheme.titleLarge
|
||||
: theme.textTheme.titleMedium,
|
||||
Flexible(
|
||||
child: Text(
|
||||
title,
|
||||
style: isColumnMode
|
||||
? theme.textTheme.titleLarge
|
||||
: theme.textTheme.titleMedium,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue