mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 23:12:37 +01:00
Merge branch 'krille/display-event-time' into 'main'
feat: Display event timestamp if selected See merge request famedly/fluffychat!814
This commit is contained in:
commit
3bb029db7e
@ -269,19 +269,24 @@ class Message extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
Widget container;
|
Widget container;
|
||||||
if (event.hasAggregatedEvents(timeline, RelationshipTypes.reaction) ||
|
if (event.hasAggregatedEvents(timeline, RelationshipTypes.reaction) ||
|
||||||
displayTime) {
|
displayTime ||
|
||||||
|
selected) {
|
||||||
container = Column(
|
container = Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment:
|
crossAxisAlignment:
|
||||||
ownMessage ? CrossAxisAlignment.end : CrossAxisAlignment.start,
|
ownMessage ? CrossAxisAlignment.end : CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (displayTime)
|
if (displayTime || selected)
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: displayTime
|
||||||
vertical: 8.0 * AppConfig.bubbleSizeFactor),
|
? EdgeInsets.symmetric(
|
||||||
|
vertical: 8.0 * AppConfig.bubbleSizeFactor)
|
||||||
|
: EdgeInsets.zero,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Material(
|
child: Material(
|
||||||
color: Theme.of(context).backgroundColor,
|
color: displayTime
|
||||||
|
? Theme.of(context).backgroundColor
|
||||||
|
: Theme.of(context).backgroundColor.withOpacity(0.33),
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
Loading…
Reference in New Issue
Block a user