Adds in image icons

This commit is contained in:
zontreck 2024-07-21 03:13:12 -07:00
parent 7836668d4c
commit 192f039421
21 changed files with 88 additions and 51 deletions

View file

@ -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(() {});