From f707e6dd8047007ff80dc6d1d041ed67954a6d4e Mon Sep 17 00:00:00 2001 From: ArthurHeitmann <37270165+ArthurHeitmann@users.noreply.github.com> Date: Sun, 1 Dec 2024 12:57:04 +0100 Subject: [PATCH] fix wta edge case --- lib/widgets/filesView/types/wtaWtpEditor.dart | 14 +++++----- pubspec.lock | 28 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/widgets/filesView/types/wtaWtpEditor.dart b/lib/widgets/filesView/types/wtaWtpEditor.dart index 3802cf5..da2157a 100644 --- a/lib/widgets/filesView/types/wtaWtpEditor.dart +++ b/lib/widgets/filesView/types/wtaWtpEditor.dart @@ -36,15 +36,15 @@ class _TexturesTableConfig with CustomTableConfig { columnNames = [ "ID", "Path", "", "", if (texData.hasAnySimpleModeFlags) - "Is Albedo?", - if (!texData.useFlagsSimpleMode) + "Is Albedo?" + else "Flags", ]; columnFlex = [ 2, 9, 1, 1, if (texData.hasAnySimpleModeFlags) - 2, - if (!texData.useFlagsSimpleMode) + 2 + else 2, ]; rowCount = NumberProp(textures.length, true, fileId: null); @@ -66,9 +66,9 @@ class _TexturesTableConfig with CustomTableConfig { icon: const Icon(Icons.delete, size: 20), onPressed: () => onRowRemove(index), )), - if (texData.hasAnySimpleModeFlags) - PropCellConfig(prop: textures[index].isAlbedo!), - if (!texData.useFlagsSimpleMode) + if (texData.hasAnySimpleModeFlags && textures[index].isAlbedo != null) + PropCellConfig(prop: textures[index].isAlbedo!) + else PropCellConfig(prop: textures[index].flag!), ] ); diff --git a/pubspec.lock b/pubspec.lock index 46d6945..bd63f85 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -157,10 +157,10 @@ packages: dependency: "direct main" description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.4+2" crypto: dependency: transitive description: @@ -213,10 +213,10 @@ packages: dependency: transitive description: name: ffi - sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" file: dependency: transitive description: @@ -300,10 +300,10 @@ packages: dependency: "direct main" description: name: fluttertoast - sha256: "7eae679e596a44fdf761853a706f74979f8dd3cd92cf4e23cae161fda091b847" + sha256: "95f349437aeebe524ef7d6c9bde3e6b4772717cf46a0eb6a3ceaddc740b297cc" url: "https://pub.dev" source: hosted - version: "8.2.6" + version: "8.2.8" highlight: dependency: "direct main" description: @@ -316,10 +316,10 @@ packages: dependency: "direct main" description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" http_parser: dependency: transitive description: @@ -612,18 +612,18 @@ packages: dependency: transitive description: name: shared_preferences_android - sha256: "3b9febd815c9ca29c9e3520d50ec32f49157711e143b7a4ca039eb87e8ade5ab" + sha256: "3d4571b3c5eb58ce52a419d86e655493d0bc3020672da79f72fa0c16ca3a8ec1" url: "https://pub.dev" source: hosted - version: "2.3.3" + version: "2.2.4" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "07e050c7cd39bad516f8d64c455f04508d09df104be326d8c02551590a0d513d" + sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7" url: "https://pub.dev" source: hosted - version: "2.5.3" + version: "2.4.0" shared_preferences_linux: dependency: transitive description: @@ -644,10 +644,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.1" shared_preferences_windows: dependency: transitive description: