From 10f18668deff5f88da93996554639234bbc1b6c9 Mon Sep 17 00:00:00 2001 From: zontreck Date: Mon, 22 Jul 2024 18:55:24 -0700 Subject: [PATCH] Refactor: Rename applogo image file to application name --- .../PNG/{AppLogo-sweet.png => nbteditor-sweet.png} | Bin Icons/PNG/{AppLogo.png => nbteditor.png} | Bin lib/Editor.dart | 4 +++- pubspec.yaml | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) rename Icons/PNG/{AppLogo-sweet.png => nbteditor-sweet.png} (100%) rename Icons/PNG/{AppLogo.png => nbteditor.png} (100%) diff --git a/Icons/PNG/AppLogo-sweet.png b/Icons/PNG/nbteditor-sweet.png similarity index 100% rename from Icons/PNG/AppLogo-sweet.png rename to Icons/PNG/nbteditor-sweet.png diff --git a/Icons/PNG/AppLogo.png b/Icons/PNG/nbteditor.png similarity index 100% rename from Icons/PNG/AppLogo.png rename to Icons/PNG/nbteditor.png diff --git a/lib/Editor.dart b/lib/Editor.dart index bdd9a92..40df70b 100644 --- a/lib/Editor.dart +++ b/lib/Editor.dart @@ -126,10 +126,11 @@ class EditorState extends State { title: const Text("S A V E N B T"), subtitle: const Text("Save to NBT"), leading: const Image( - image: AssetImage("Icons/PNG/AppLogo.png"), + image: AssetImage("Icons/PNG/nbteditor.png"), ), onTap: () async { // Prompt for where to save + print("Begin picking file to save to"); String? filePath = await FilePicker.platform .saveFile(dialogTitle: "Where do you want to save the file?"); if (filePath == null) { @@ -176,6 +177,7 @@ class EditorState extends State { ), onTap: () async { // Prompt for where to save + print("Begin picking file to save to"); String? filePath = await FilePicker.platform .saveFile(dialogTitle: "Where do you want to save the file?"); if (filePath == null) { diff --git a/pubspec.yaml b/pubspec.yaml index c4a560b..686cb8a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,5 +40,5 @@ flutter: - "Icons/PNG/LongArray.png" - "Icons/PNG/Short.png" - "Icons/PNG/String.png" - - "Icons/PNG/AppLogo.png" - - "Icons/PNG/AppLogo-sweet.png" \ No newline at end of file + - "Icons/PNG/nbteditor.png" + - "Icons/PNG/nbteditor-sweet.png" \ No newline at end of file