diff --git a/lib/Editor.dart b/lib/Editor.dart index 754123d..8a7189c 100644 --- a/lib/Editor.dart +++ b/lib/Editor.dart @@ -90,7 +90,7 @@ class EditorState extends State { subtitle: const Text("Open an existing NBT Document for editing"), onTap: () async { String? filePath = await FlutterFileDialog.pickFile( - params: OpenFileDialogParams()); + params: const OpenFileDialogParams()); if (filePath != null) { // Do something with the selected file path print('Selected file path: $filePath'); @@ -161,7 +161,7 @@ class EditorState extends State { } // Prompt for where to save print("Begin picking file to save to"); - var params = await SaveFileDialogParams(data: u8l); + var params = SaveFileDialogParams(data: u8l); var filePath = await FlutterFileDialog.saveFile(params: params); if (filePath == null) { diff --git a/lib/tags/Tag.dart b/lib/tags/Tag.dart index c94e977..c3aedc6 100644 --- a/lib/tags/Tag.dart +++ b/lib/tags/Tag.dart @@ -243,7 +243,7 @@ class TagExt { didChangeState.call(); }, - icon: Icon(Icons.delete)) + icon: const Icon(Icons.delete)) ], ); }