|
|
|
@ -17,6 +17,7 @@ class ClassDescriptionButton extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final iconColor = Theme.of(context).textTheme.bodyLarge!.color;
|
|
|
|
final iconColor = Theme.of(context).textTheme.bodyLarge!.color;
|
|
|
|
|
|
|
|
final ScrollController scrollController = ScrollController();
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
ListTile(
|
|
|
|
ListTile(
|
|
|
|
@ -26,14 +27,27 @@ class ClassDescriptionButton extends StatelessWidget {
|
|
|
|
foregroundColor: iconColor,
|
|
|
|
foregroundColor: iconColor,
|
|
|
|
child: const Icon(Icons.topic_outlined),
|
|
|
|
child: const Icon(Icons.topic_outlined),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
subtitle: Text(
|
|
|
|
subtitle: ConstrainedBox(
|
|
|
|
room.topic.isEmpty
|
|
|
|
constraints: const BoxConstraints(
|
|
|
|
? (room.isRoomAdmin
|
|
|
|
maxHeight: 190,
|
|
|
|
? (room.isSpace
|
|
|
|
),
|
|
|
|
? L10n.of(context)!.classDescriptionDesc
|
|
|
|
child: Scrollbar(
|
|
|
|
: L10n.of(context)!.chatTopicDesc)
|
|
|
|
controller: scrollController,
|
|
|
|
: L10n.of(context)!.topicNotSet)
|
|
|
|
interactive: true,
|
|
|
|
: room.topic,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
|
|
|
controller: scrollController,
|
|
|
|
|
|
|
|
primary: false,
|
|
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
|
|
room.topic.isEmpty
|
|
|
|
|
|
|
|
? (room.isRoomAdmin
|
|
|
|
|
|
|
|
? (room.isSpace
|
|
|
|
|
|
|
|
? L10n.of(context)!.classDescriptionDesc
|
|
|
|
|
|
|
|
: L10n.of(context)!.chatTopicDesc)
|
|
|
|
|
|
|
|
: L10n.of(context)!.topicNotSet)
|
|
|
|
|
|
|
|
: room.topic,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
title: Text(
|
|
|
|
title: Text(
|
|
|
|
room.isSpace
|
|
|
|
room.isSpace
|
|
|
|
|