Skip to content

Commit

Permalink
Small bug fixes
Browse files Browse the repository at this point in the history
Better range error handling for editable lists
FilePicker use FileType.custom
Update darkstorm_common (ignore network errors)
  • Loading branch information
CalebQ42 committed Jul 21, 2023
1 parent da3ed71 commit 0246dd0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/sw.dart
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ class SW with TopResources{
)
);
FilePicker.platform.pickFiles(
type: FileType.custom,
allowMultiple: true,
allowedExtensions: [
"swcharacter",
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/screens/editable_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class EditableListState extends State<EditableList>{
initialItemCount: list.length,
padding: const EdgeInsets.only(bottom: 80),
itemBuilder: (context, i, anim) {
if(list.length < i) return Container();
if(list.length <= i) return Container();
return SlideTransition(
position: Tween<Offset>(begin: const Offset(1.0, 0), end: Offset.zero).animate(anim),
child: InheritedEditable(
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ packages:
dependency: "direct main"
description:
name: darkstorm_common
sha256: "19c7babf74c0574cb94ea6da839b3133c1bac1f595e2241b89c441a1c851b90e"
sha256: "733a7f50369671ac1d5d2f2e84f97ad67d43a5ecef64832978a7c83e618b3dd6"
url: "https://pub.dev"
source: hosted
version: "1.0.3"
version: "1.0.4"
dbus:
dependency: transitive
description:
Expand Down Expand Up @@ -305,10 +305,10 @@ packages:
dependency: "direct main"
description:
name: googleapis
sha256: d161bced63e5c35da5de97af8800ba860b71eb11e478de7a46b852ca2560d4ad
sha256: d0278247cecfa919323ddf9a9beed1fadd428a16b41020c4eb79c2b60cbdd48a
url: "https://pub.dev"
source: hosted
version: "11.2.0"
version: "11.3.0"
googleapis_auth:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Character sheet and dice app for the FFG Star Wars TTRPG

publish_to: 'none'

version: 4.2.6+190
version: 4.2.7+191

environment:
sdk: ">=3.0.0-417.2.beta <4.0.0"
Expand All @@ -23,10 +23,10 @@ dependencies:
in_app_purchase: ^3.1.7
device_info_plus: ^9.0.2
package_info_plus: ^4.0.2
googleapis: ^11.2.0
googleapis: ^11.3.0
uuid: ^3.0.7
flutter_dotenv: ^5.1.0
darkstorm_common: ^1.0.3
darkstorm_common: ^1.0.4
stupid: ^0.2.4
flutter_secure_storage: ^8.0.0
http: ^1.1.0
Expand Down

0 comments on commit 0246dd0

Please sign in to comment.