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:
2026-10-30 20:07:27 +00:00
parent 027c2f800e
commit 44b2cff347
9 changed files with 349 additions and 174 deletions
@@ -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,
),