mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: Minor design fixes
This commit is contained in:
parent
719323ad66
commit
e9aa285f1a
@ -8,6 +8,7 @@ import 'package:fluffychat/utils/string_color.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
import '../adaptive_page_layout.dart';
|
||||
import '../avatar.dart';
|
||||
import '../matrix.dart';
|
||||
import '../message_reactions.dart';
|
||||
@ -86,6 +87,8 @@ class Message extends StatelessWidget {
|
||||
color: color,
|
||||
borderRadius: BorderRadius.circular(radius),
|
||||
),
|
||||
constraints:
|
||||
BoxConstraints(maxWidth: AdaptivePageLayout.defaultMinWidth),
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
Column(
|
||||
|
@ -672,26 +672,16 @@ class _ChatState extends State<_Chat> {
|
||||
child: Swipeable(
|
||||
key: ValueKey(
|
||||
filteredEvents[i - 1].eventId),
|
||||
background: Container(
|
||||
color: Theme.of(context)
|
||||
.primaryColor
|
||||
.withAlpha(100),
|
||||
background: Padding(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 12.0),
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(Icons.reply),
|
||||
SizedBox(width: 2.0),
|
||||
Text(L10n.of(context).reply)
|
||||
],
|
||||
child: Center(
|
||||
child: Icon(Icons.reply),
|
||||
),
|
||||
),
|
||||
direction: SwipeDirection.startToEnd,
|
||||
onSwipe: (direction) {
|
||||
replyAction(
|
||||
replyTo: filteredEvents[i - 1]);
|
||||
},
|
||||
direction: SwipeDirection.endToStart,
|
||||
onSwipe: (direction) => replyAction(
|
||||
replyTo: filteredEvents[i - 1]),
|
||||
child: Message(filteredEvents[i - 1],
|
||||
onAvatarTab: (Event event) {
|
||||
sendController.text +=
|
||||
|
Loading…
Reference in New Issue
Block a user