nicer placeholders
This commit is contained in:
parent
3cb687a968
commit
fae1a81153
3 changed files with 24 additions and 10 deletions
|
|
@ -15,9 +15,11 @@ class MentionChip extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||
onPressed: () {
|
||||
// TODO: Open room or join room dialog, or user popover
|
||||
showAboutDialog(context: context);
|
||||
},
|
||||
onPressed: () => showDialog(
|
||||
context: context,
|
||||
builder: (_) => Dialog(
|
||||
child: Text("TODO: Open room or join room dialog, or user popover"),
|
||||
), // TODO
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -500,9 +500,14 @@ class RoomChat extends HookConsumerWidget {
|
|||
required bool isSentByMe,
|
||||
MessageGroupStatus? groupStatus,
|
||||
}) => InkWell(
|
||||
onTap: () => showAboutDialog(
|
||||
onTap: () => showDialog(
|
||||
context: context,
|
||||
), // TODO: Download
|
||||
builder: (_) => Dialog(
|
||||
child: Text(
|
||||
"TODO: Download Attachments", // TODO
|
||||
),
|
||||
),
|
||||
),
|
||||
child: FlyerChatFileMessage(
|
||||
topWidget: TopWidget(
|
||||
message,
|
||||
|
|
|
|||
|
|
@ -51,8 +51,12 @@ class TopWidget extends ConsumerWidget {
|
|||
return Padding(
|
||||
padding: EdgeInsets.only(bottom: 12),
|
||||
child: InkWell(
|
||||
// TODO: Scroll to original message
|
||||
onTap: () => showAboutDialog(context: context),
|
||||
onTap: () => showDialog(
|
||||
context: context,
|
||||
builder: (_) => Dialog(
|
||||
child: Text("TODO: Scroll to original message"),
|
||||
), // TODO
|
||||
),
|
||||
child: Quoted(
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
|
@ -91,8 +95,11 @@ class TopWidget extends ConsumerWidget {
|
|||
groupStatus?.isFirst != false ||
|
||||
message.metadata?["reply"] != null)
|
||||
InkWell(
|
||||
onTap: () =>
|
||||
showAboutDialog(context: context), // TODO: Show user profile
|
||||
onTap: () => showDialog(
|
||||
context: context,
|
||||
builder: (_) =>
|
||||
Dialog(child: Text("TODO: Show user profile")), // TODO
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
spacing: 8,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue