Rename TitleWithSub to TitleGroup

parent 8bff4c92
......@@ -28,7 +28,7 @@ import '../../../models/chat.dart';
import '../../../models/chat_message.dart';
import '../chats/widgets/typing_content.dart';
import '../widgets/chat_name.dart';
import '../widgets/title_with_sub.dart';
import '../widgets/title_group.dart';
import '../../../matrix.dart';
import '../../../util/url.dart';
......@@ -197,7 +197,7 @@ class _ChatPageWithBlocState extends State<_ChatPageWithBloc> {
}
Widget title = chat.room.isSomeoneElseTyping
? TitleWithSub(
? TitleGroup(
title: ChatName(chat: chat),
subtitle: TypingContent(
chat: chat,
......
......@@ -17,11 +17,11 @@
import 'package:flutter/cupertino.dart';
class TitleWithSub extends StatelessWidget {
class TitleGroup extends StatelessWidget {
final Widget title;
final Widget subtitle;
const TitleWithSub({
const TitleGroup({
Key key,
@required this.title,
@required this.subtitle,
......@@ -29,6 +29,7 @@ class TitleWithSub extends StatelessWidget {
@override
Widget build(BuildContext context) => Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment