mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 01:45:55 +08:00
Avoid using deprecated autovalidate
This commit is contained in:
@ -207,7 +207,8 @@ class NoteOutputExample extends StatelessWidget {
|
||||
style = style.copyWith(fontFamily: "Roboto Mono");
|
||||
|
||||
var doc = MdYamlDoc();
|
||||
NoteSerializer.fromConfig(NotesFolderConfig.fromSettings(null)).encode(note, doc);
|
||||
NoteSerializer.fromConfig(NotesFolderConfig.fromSettings(null))
|
||||
.encode(note, doc);
|
||||
|
||||
var codec = MarkdownYAMLCodec();
|
||||
var noteStr = codec.encode(doc);
|
||||
@ -395,7 +396,7 @@ class _CustomMetDataTileState extends State<CustomMetDataTile> {
|
||||
keyboardType: TextInputType.multiline,
|
||||
textCapitalization: TextCapitalization.words,
|
||||
controller: _textController,
|
||||
autovalidate: true,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
maxLines: null,
|
||||
minLines: null,
|
||||
),
|
||||
|
@ -66,12 +66,12 @@ class KeyEditor extends StatelessWidget {
|
||||
textAlign: TextAlign.left,
|
||||
maxLines: null,
|
||||
style: Theme.of(context).textTheme.bodyText2,
|
||||
autovalidate: true,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: validator,
|
||||
controller: textEditingController,
|
||||
);
|
||||
}),
|
||||
autovalidate: true,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
);
|
||||
|
||||
return SizedBox(
|
||||
|
@ -62,7 +62,7 @@ class _RenameDialogState extends State<RenameDialog> {
|
||||
),
|
||||
],
|
||||
),
|
||||
autovalidate: true,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
);
|
||||
|
||||
return AlertDialog(
|
||||
|
Reference in New Issue
Block a user