feat(chat): автозаглавная буква в начале предложений при наборе
TextCapitalization.sentences для композера, подписи к вложениям и шторки редактирования сообщения.
This commit is contained in:
@@ -273,6 +273,8 @@ class ComposerInputBar extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
|
textCapitalization:
|
||||||
|
TextCapitalization.sentences,
|
||||||
textAlignVertical:
|
textAlignVertical:
|
||||||
TextAlignVertical.center,
|
TextAlignVertical.center,
|
||||||
contextMenuBuilder: contextMenuBuilder,
|
contextMenuBuilder: contextMenuBuilder,
|
||||||
|
|||||||
@@ -7605,6 +7605,7 @@ class _EditMessageSheetState extends State<_EditMessageSheet> {
|
|||||||
autofocus: true,
|
autofocus: true,
|
||||||
minLines: 1,
|
minLines: 1,
|
||||||
maxLines: 6,
|
maxLines: 6,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
style: TextStyle(color: cs.onSurface),
|
style: TextStyle(color: cs.onSurface),
|
||||||
contextMenuBuilder: (ctx, state) =>
|
contextMenuBuilder: (ctx, state) =>
|
||||||
widget.contextMenuBuilder(_controller, ctx, state),
|
widget.contextMenuBuilder(_controller, ctx, state),
|
||||||
|
|||||||
@@ -832,6 +832,7 @@ class _AttachmentSheetState extends State<AttachmentSheet> {
|
|||||||
controller: _captionCtrl,
|
controller: _captionCtrl,
|
||||||
style: TextStyle(color: cs.onSurface, fontSize: 15),
|
style: TextStyle(color: cs.onSurface, fontSize: 15),
|
||||||
cursorColor: cs.primary,
|
cursorColor: cs.primary,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isCollapsed: true,
|
isCollapsed: true,
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
|
|||||||
Reference in New Issue
Block a user