mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-06-13 10:42:12 +00:00
use text capitalization
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
This commit is contained in:
parent
23553b9cb0
commit
726cdaf89f
11 changed files with 17 additions and 10 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
|
@ -1,18 +1,12 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 0.2.31
|
## 0.3.0
|
||||||
|
|
||||||
- Fix: Issue with background notifications on Android
|
|
||||||
|
|
||||||
## 0.2.30
|
|
||||||
|
|
||||||
- Fix: Changed minimum threshold for the user discovery to 3
|
|
||||||
- Fix: Multiple UI issues
|
|
||||||
|
|
||||||
## 0.2.28
|
|
||||||
|
|
||||||
- Improved: Design of some UI components
|
- Improved: Design of some UI components
|
||||||
- Improved: Memories viewer shows state for batch operations and has improved performance
|
- Improved: Memories viewer shows state for batch operations and has improved performance
|
||||||
|
- Fix: Issue with background notifications on Android
|
||||||
|
- Fix: Changed minimum threshold for the user discovery to 3
|
||||||
|
- Fix: Multiple UI issues
|
||||||
- Fix: Auto-detect if FCM token does not work and trigger a reset
|
- Fix: Auto-detect if FCM token does not work and trigger a reset
|
||||||
|
|
||||||
## 0.2.26
|
## 0.2.26
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ class _TextViewState extends State<TextLayer> {
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: textController,
|
controller: textController,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
minLines: 1,
|
minLines: 1,
|
||||||
onEditingComplete: onEditionComplete,
|
onEditingComplete: onEditionComplete,
|
||||||
|
|
|
||||||
|
|
@ -248,6 +248,7 @@ Future<void> editTextMessage(BuildContext context, Message message) async {
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
maxLines: 4,
|
maxLines: 4,
|
||||||
minLines: 1,
|
minLines: 1,
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,7 @@ class _MessageInputState extends State<MessageInput> {
|
||||||
TextField(
|
TextField(
|
||||||
controller: _textFieldController,
|
controller: _textFieldController,
|
||||||
focusNode: widget.textFieldFocus,
|
focusNode: widget.textFieldFocus,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
showCursor:
|
showCursor:
|
||||||
_recordingState != RecordingState.recording,
|
_recordingState != RecordingState.recording,
|
||||||
|
|
|
||||||
|
|
@ -833,6 +833,7 @@ class _MediaViewerViewState extends State<MediaViewerView> {
|
||||||
child: TextField(
|
child: TextField(
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
controller: textMessageController,
|
controller: textMessageController,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
onChanged: (value) async {
|
onChanged: (value) async {
|
||||||
await twonlyDB.groupsDao.updateGroup(
|
await twonlyDB.groupsDao.updateGroup(
|
||||||
widget.group.groupId,
|
widget.group.groupId,
|
||||||
|
|
|
||||||
|
|
@ -278,6 +278,7 @@ Future<String?> showNicknameChangeDialog(
|
||||||
content: TextField(
|
content: TextField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
textCapitalization: TextCapitalization.words,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: context.lang.contactNicknameNew,
|
hintText: context.lang.contactNicknameNew,
|
||||||
),
|
),
|
||||||
|
|
@ -319,6 +320,7 @@ Future<String?> showReportDialog(
|
||||||
content: TextField(
|
content: TextField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
decoration: InputDecoration(hintText: context.lang.reportUserReason),
|
decoration: InputDecoration(hintText: context.lang.reportUserReason),
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
|
|
|
||||||
|
|
@ -322,6 +322,7 @@ Future<String?> showGroupNameChangeDialog(
|
||||||
content: TextField(
|
content: TextField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
textCapitalization: TextCapitalization.words,
|
||||||
decoration: InputDecoration(hintText: context.lang.groupNameInput),
|
decoration: InputDecoration(hintText: context.lang.groupNameInput),
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
|
|
|
||||||
|
|
@ -193,6 +193,7 @@ $debugLogToken
|
||||||
const SizedBox(height: 5),
|
const SizedBox(height: 5),
|
||||||
TextField(
|
TextField(
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: context.lang.contactUsYourMessage,
|
hintText: context.lang.contactUsYourMessage,
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ class _ContactUsState extends State<SubmitMessage> {
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
TextField(
|
TextField(
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: context.lang.contactUsYourMessage,
|
hintText: context.lang.contactUsYourMessage,
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
|
|
|
||||||
|
|
@ -176,6 +176,7 @@ class _ProfileViewState extends State<ProfileView> {
|
||||||
context.lang.settingsProfileEditDisplayName,
|
context.lang.settingsProfileEditDisplayName,
|
||||||
context.lang.settingsProfileEditDisplayNameNew,
|
context.lang.settingsProfileEditDisplayNameNew,
|
||||||
maxLength: 30,
|
maxLength: 30,
|
||||||
|
textCapitalization: TextCapitalization.words,
|
||||||
);
|
);
|
||||||
if (context.mounted &&
|
if (context.mounted &&
|
||||||
displayName != null &&
|
displayName != null &&
|
||||||
|
|
@ -210,6 +211,7 @@ Future<String?> showDisplayNameChangeDialog(
|
||||||
String hintText, {
|
String hintText, {
|
||||||
List<TextInputFormatter>? inputFormatters,
|
List<TextInputFormatter>? inputFormatters,
|
||||||
int? maxLength,
|
int? maxLength,
|
||||||
|
TextCapitalization textCapitalization = TextCapitalization.none,
|
||||||
}) {
|
}) {
|
||||||
final controller = TextEditingController(text: currentName);
|
final controller = TextEditingController(text: currentName);
|
||||||
|
|
||||||
|
|
@ -223,6 +225,7 @@ Future<String?> showDisplayNameChangeDialog(
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
inputFormatters: inputFormatters,
|
inputFormatters: inputFormatters,
|
||||||
maxLength: maxLength,
|
maxLength: maxLength,
|
||||||
|
textCapitalization: textCapitalization,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: hintText,
|
hintText: hintText,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -256,6 +256,7 @@ class _UserStudyQuestionnaireViewState
|
||||||
|
|
||||||
Widget _buildTextField(String hint, void Function(String) onChanged) {
|
Widget _buildTextField(String hint, void Function(String) onChanged) {
|
||||||
return TextField(
|
return TextField(
|
||||||
|
textCapitalization: TextCapitalization.sentences,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: hint,
|
hintText: hint,
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue