mirror of
https://github.com/zontreck/NBTEditor
synced 2024-11-21 13:48:56 -07:00
Apply dart autofixes
This commit is contained in:
parent
f3f762dca5
commit
e62fc5cf91
2 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ class EditorState extends State<Editor> {
|
||||||
subtitle: const Text("Open an existing NBT Document for editing"),
|
subtitle: const Text("Open an existing NBT Document for editing"),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
String? filePath = await FlutterFileDialog.pickFile(
|
String? filePath = await FlutterFileDialog.pickFile(
|
||||||
params: OpenFileDialogParams());
|
params: const OpenFileDialogParams());
|
||||||
if (filePath != null) {
|
if (filePath != null) {
|
||||||
// Do something with the selected file path
|
// Do something with the selected file path
|
||||||
print('Selected file path: $filePath');
|
print('Selected file path: $filePath');
|
||||||
|
@ -161,7 +161,7 @@ class EditorState extends State<Editor> {
|
||||||
}
|
}
|
||||||
// Prompt for where to save
|
// Prompt for where to save
|
||||||
print("Begin picking file to save to");
|
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);
|
var filePath = await FlutterFileDialog.saveFile(params: params);
|
||||||
|
|
||||||
if (filePath == null) {
|
if (filePath == null) {
|
||||||
|
|
|
@ -243,7 +243,7 @@ class TagExt {
|
||||||
|
|
||||||
didChangeState.call();
|
didChangeState.call();
|
||||||
},
|
},
|
||||||
icon: Icon(Icons.delete))
|
icon: const Icon(Icons.delete))
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue