FlutterWay / gallery_picker

MIT License
8 stars 7 forks source link

How to fix Unhandled Exception: FormatException: Invalid radix-10 number (at character 1) ? #3

Open uzdevid opened 10 months ago

uzdevid commented 10 months ago

E/flutter ( 4283): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Invalid radix-10 number (at character 1) E/flutter ( 4283): Noyabr E/flutter ( 4283): ^ E/flutter ( 4283): E/flutter ( 4283): #0 int._handleFormatError (dart:core-patch/integers_patch.dart:126:5) E/flutter ( 4283): #1 int._parseRadix (dart:core-patch/integers_patch.dart:137:16) E/flutter ( 4283): #2 int._parse (dart:core-patch/integers_patch.dart:98:12) E/flutter ( 4283): #3 int.parse (dart:core-patch/integers_patch.dart:60:12) E/flutter ( 4283): #4 DateCategory.getIndexOfCategory (package:gallery_picker/models/gallery_album.dart:168:25) E/flutter ( 4283): #5 GalleryAlbum.sort. (package:gallery_picker/models/gallery_album.dart:124:54) E/flutter ( 4283): #6 Sort._insertionSort (dart:_internal/sort.dart:69:36) E/flutter ( 4283): #7 Sort._doSort (dart:_internal/sort.dart:58:7) E/flutter ( 4283): #8 Sort.sort (dart:_internal/sort.dart:33:5) E/flutter ( 4283): #9 ListBase.sort (dart:collection/list.dart:321:10) E/flutter ( 4283): #10 GalleryAlbum.sort (package:gallery_picker/models/gallery_album.dart:123:20) E/flutter ( 4283): #11 PhoneGalleryController.collectGallery (package:gallery_picker/controller/gallery_controller.dart:301:30) E/flutter ( 4283): E/flutter ( 4283): #12 GalleryPicker.collectGallery (package:gallery_picker/gallery_picker.dart:127:12) E/flutter ( 4283): E/flutter ( 4283): #13 _PickMediaState.initState. (package:hodisa/page/new-message/PickMedia.dart:49:39) E/flutter ( 4283):

pdeki commented 10 months ago

It seems that this is the problem with the format of the date defined for the "context" (issue with dMMM). If you switch to 'en' this problem doesn't occur.

worldwidee commented 8 months ago

@uzdevid can you try to latest version of the package. Added automated localization for recent tabs