fix(chat): Return breaks lines on phones and align the activity line
On Android and iOS the keyboard's Return now inserts a newline and the Send button sends; desktop keeps Enter to send. The Material activity line drops TextButton's inset so it starts at the answer's edge now that replies have no bubble.
This commit is contained in:
@@ -186,6 +186,12 @@ class _ChatTurnActivityViewState extends State<ChatTurnActivityView> {
|
||||
)
|
||||
: TextButton(
|
||||
key: const Key('chat-turn-activity'),
|
||||
// No inset of its own: the line starts at the answer's edge,
|
||||
// which no longer sits inside a padded bubble.
|
||||
style: TextButton.styleFrom(
|
||||
padding: EdgeInsets.zero,
|
||||
alignment: AlignmentDirectional.centerStart,
|
||||
),
|
||||
onPressed: _open,
|
||||
child: content,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user