mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
NoteTagEditor: Null Safety
This commit is contained in:
@ -1,5 +1,3 @@
|
|||||||
// @dart=2.9
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
@ -9,18 +7,18 @@ class NoteTagEditor extends StatefulWidget {
|
|||||||
final Set<String> selectedTags;
|
final Set<String> selectedTags;
|
||||||
final Set<String> allTags;
|
final Set<String> allTags;
|
||||||
|
|
||||||
NoteTagEditor({@required this.selectedTags, @required this.allTags});
|
NoteTagEditor({required this.selectedTags, required this.allTags});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_NoteTagEditorState createState() => _NoteTagEditorState();
|
_NoteTagEditorState createState() => _NoteTagEditorState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _NoteTagEditorState extends State<NoteTagEditor> {
|
class _NoteTagEditorState extends State<NoteTagEditor> {
|
||||||
TextEditingController _textController;
|
late TextEditingController _textController;
|
||||||
FocusNode _focusNode;
|
late FocusNode _focusNode;
|
||||||
|
|
||||||
Set<String> _selectedTags;
|
late Set<String> _selectedTags;
|
||||||
Set<String> _allTags;
|
late Set<String> _allTags;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
Reference in New Issue
Block a user