feat(chat): автозаглавная буква в начале предложений при наборе

TextCapitalization.sentences для композера, подписи к вложениям
и шторки редактирования сообщения.
This commit is contained in:
bigtaed-sys
2026-08-15 16:02:10 +07:00
committed by Jganenokk
parent 45f59ced3d
commit 7f696f4b0d
3 changed files with 4 additions and 0 deletions
@@ -273,6 +273,8 @@ class ComposerInputBar extends StatelessWidget {
),
maxLines: null,
keyboardType: TextInputType.multiline,
textCapitalization:
TextCapitalization.sentences,
textAlignVertical:
TextAlignVertical.center,
contextMenuBuilder: contextMenuBuilder,
@@ -7605,6 +7605,7 @@ class _EditMessageSheetState extends State<_EditMessageSheet> {
autofocus: true,
minLines: 1,
maxLines: 6,
textCapitalization: TextCapitalization.sentences,
style: TextStyle(color: cs.onSurface),
contextMenuBuilder: (ctx, state) =>
widget.contextMenuBuilder(_controller, ctx, state),
@@ -832,6 +832,7 @@ class _AttachmentSheetState extends State<AttachmentSheet> {
controller: _captionCtrl,
style: TextStyle(color: cs.onSurface, fontSize: 15),
cursorColor: cs.primary,
textCapitalization: TextCapitalization.sentences,
decoration: InputDecoration(
isCollapsed: true,
border: InputBorder.none,