Skip to content

App crashing after loading images #4

Description

@Ahmadre

I tested this on more than 5 Devices (iPad 6. gen, iPhone 5s, iPhone 6, iPhone 7, Pixel 2 XL, an Android Tablet) and the App is crashing after i scroll/swipe once down my gallery-list.

For reproduce, I am only using a simple Grid:

ViewGallery Widget

List<Widget> imageList = new List();
[...]
SliverGrid.extent(
            maxCrossAxisExtent:
                loadedGallery ? MediaQuery.of(context).size.width / 4 : MediaQuery.of(context).size.width,
            children: loadedGallery
                ? imageList
                : [Container(
                    color: Colors.black54,
                    child: Center(
                      child: CircularProgressIndicator(),
                    ))],
          )

I call the gallery exactly as you're describing in your example code.

The major problem in iOS devices is also, that the images are definetly not 512:512. They're sooo pixely:

Simulator Screen Shot - iPhone X - 2019-08-09 at 00 37 06

I got a workaround for that: targetSize: PHImageManagerMaximumSize. But if I use that parameter (because 512:512 is not working!), I can't use my images! And Most worse is that in the iOS implementation the images are saved to a temporary directory... That slows down my devices...

It's terrible, this plugin is crashing my android devices like so hard, that my preferences like background image is gone!

I mean: did someone ever tested this?

EDIT: I upscaled the ios settings like: 1024:1024 but same image quality...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions