Skip to content

Commit

Permalink
unwanted code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sher999 committed Dec 11, 2024
1 parent a2a1fb5 commit 861cfc3
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions lib/widgets/lightbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -178,25 +178,19 @@ class _LightboxPageLayoutState extends State<_LightboxPageLayout> {
elevation: appBarElevation,

// TODO(#41): Show message author's avatar
title: Row(
children: [
Avatar(size: 32, borderRadius: 3,userId: widget.message.senderId),
const SizedBox(width: 8),
RichText(
text: TextSpan(children: [
TextSpan(
text: '${widget.message.senderFullName}\n',

// Restate default
style: themeData.textTheme.titleLarge!.copyWith(color: appBarForegroundColor)),
TextSpan(
text: timestampText,

// Make smaller, like a subtitle
style: themeData.textTheme.titleSmall!.copyWith(color: appBarForegroundColor)),
])),
],
),
title: RichText(
text: TextSpan(children: [
TextSpan(
text: '${widget.message.senderFullName}\n',

// Restate default
style: themeData.textTheme.titleLarge!.copyWith(color: appBarForegroundColor)),
TextSpan(
text: timestampText,

// Make smaller, like a subtitle
style: themeData.textTheme.titleSmall!.copyWith(color: appBarForegroundColor)),
])),
bottom: widget.buildAppBarBottom(context));
}

Expand Down

0 comments on commit 861cfc3

Please sign in to comment.