Skip to content

Commit

Permalink
fix wta edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHeitmann committed Dec 1, 2024
1 parent 4c739e3 commit f707e6d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions lib/widgets/filesView/types/wtaWtpEditor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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!),
]
);
Expand Down
28 changes: 14 additions & 14 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit f707e6d

Please sign in to comment.