Adds in image icons
This commit is contained in:
parent
7836668d4c
commit
192f039421
21 changed files with 88 additions and 51 deletions
|
@ -26,10 +26,11 @@ class EditorState extends State<Editor> {
|
|||
}
|
||||
late TreeViewController controller;
|
||||
factory EditorState() {
|
||||
if (_inst == null)
|
||||
if (_inst == null) {
|
||||
return EditorState._();
|
||||
else
|
||||
} else {
|
||||
return _inst!;
|
||||
}
|
||||
}
|
||||
|
||||
void update() {
|
||||
|
@ -106,9 +107,9 @@ class EditorState extends State<Editor> {
|
|||
},
|
||||
),
|
||||
ListTile(
|
||||
title: Text("R A W"),
|
||||
subtitle: Text("Edit as raw SNBT"),
|
||||
leading: Icon(Icons.edit),
|
||||
title: const Text("R A W"),
|
||||
subtitle: const Text("Edit as raw SNBT"),
|
||||
leading: const Icon(Icons.edit),
|
||||
onTap: () async {
|
||||
await Navigator.pushNamed(context, "/snbt");
|
||||
setState(() {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue