I am trying to display the picked images from gallery in a grid view . I have stored the images path in a list and displaying in the Gridview. After exiting the app and restarting , the grid view is empty. I want to retain the picked images for the next time when the user opens the app again, user should be able to see the gridview with previously picked images.
I am using imagepicker package in flutter. Since the image is stored in a cache , next time when the user restarts again , cache is cleared and the images list is empty. I have no idea about, how to display even after reopens the app?
Related
I was just watching some street view images in this website where if you refresh everytime it loads up a new image. Then I realized a image was too beautiful and I was trying to save that image somehow, and it is when I came to know that I can't right click and same street view (Panorama) images. I thought maybe going to developer tools then network might help but it requires to be opened before I load up the page or I have to refresh the page which is disasters in this case.
I know the images loads up on browsers gets saved in the data folder of the browser. But I don't know how to retrieve them or is there any other ways I can save the image?
I created a multi image selector form field widget to use within a form with validation and so on, and it works fine; however, when I select 8 or more images from a file picker at once and add them to the selected images list, which would be displayed in an image widget within a GridView, the app crashes without any errors.
I even tried the app on Android to see if it happened there, but everything was OK even when I added 10+ images at a time.
I'm wondering if there's any way to debug this because I'm at a loss for what to do right now with no errors.
i've tried these:
Using a 50x50 pixel size cache for the selected image list to avoid loading a large amount of data at once
It turned out to be file_picker v4.0.0 causing the issue
Apparently, when you select files using this package, it will interact with the file, either loading it or whatnot. I'm not sure, but I discovered it by removing image widgets and only displaying the selected image paths using a text widget and it still crashed, so I was certain it was the file picker's fault and chose to use file picker cross even though it depends on file picker it was working differently and it didn't crash the app even with 20 images selected.
I'm currently testing drag & drop. Drag & dropping an image from my desktop works fine, but I'm facing a problem : when I drag & drop an "online" image (from another website, or even from the same webpage using a , the variable e.dataTransfer.files is empty.
To sum up what I'm trying to do : You drag an image from your desktop to my page (inside a special zone), then it displays the image inside a <canvas>. I'd like to be able to drag an image from my page also, to say something like "Hey, you can first try with these images !".
For the basics of drag & drop, I got inspiration from this tutorial : http://www.html5rocks.com/en/tutorials/dnd/basics/
Because drag&drop online is interpreted as link, not as file transfer. You must first save the picture on your desktop and it will then be intepreted as real drag&drop.
But, since you already have the pictures on your page, you could reach your goal by filling your canvas with your existing images (e.g. using javascript).
P.S.: Drag&Drop works the way you want only if you use 2 different browsers, for example drag a picture from IE into FF. For that you need load your page in 2 different browsers.
Im running Xcode 4.3.2 I have built a basic iPad/iphone app. On the main menu the info button is displayed. When I select it on my device the screen flips over and displays some info. My question is, When the screen flips over, for a brief second, you can see an image in the background. Although it's an image in my project folder I'm not quite sure how to change it or how it got there. Thanks
-Anthony
This image is actually the MainWindow_ipad.xib or MainWindow_iphone.xib file within my project. you can drag and drop a new image into it from your media library once you've put that image into your project folder and then selected xcode>file>add files to "your project's name"
TiSDK 1.7.1
iOS 5.0
I'm attempting to take the URL of an image that is passed to the app and store it in applicationDataDirectory.
I've written a function that takes the url, creates an ImageView, passes it to .toImage() and then writes it to a file.
http://pastie.org/3064770
When I run it in the simulator and go to the applicationDataDirectory in finder to view the image it's the generic placeholder image that is stored, not the image that is being passed.
Thoughts?
I think the problem is you are saving the image when the image has not downloaded from the web yet - it has no data. The image is not available as soon as you get the image property - you have to wait for the 'load' event. Dawson Toth has a great example on how to create a caching image view which saves the file when the image has loaded. iOS only as the 'load' event doesn't fire in Android in 1.7.X.
Also, Titanium will only load the image when it is displayed on the screen. So if you want to download it in the background, use a HttpClient.