FadeInImage does not what I expect it to when filtering - flutter

This might be a bug but I'm not sure.
I'm trying to make a list of users in the app that I'm making. With to the left of all the users a picture of that user. Everything goes well when in loads in. The users that have a picture get them loaded in. The users that don't have one keep a placeholder image. So far so good.
But when I start filtering the records it gets messy. I have a search bar at the top. But when I start searching. All the names are still correctly displayed (the ones that are within the range of the search) but the images don't correspond with the correct users any more.
Please explain if I'm doing something wrong. But this might be a bug because this does not happen when I use the normal Image class. Only when I use the FadeInImage class
Underneath two screenshots to explain my problem. The first screenshot is when I boot the app. The second is after I pressed the button. Notice how the error.jpg url is standing next to the working image in screenshot 2.
I made a small example project to make it easy to reproduce this.
To reproduce, wait for the top image to load in. The second one will 404 but that is intended so it keeps its placeholder and after that click the button. You will see the 404 url next to the picture that was actually loaded from the web.

Related

How create change beackround by uesrs?

Good afternoon everyone.
Please help me to solve the issue.
I need to make it so that the user can change the background on their own, based on the options I suggested. The background will change only on one screen and for the background I decided to choose images.
That is, going to the quote screen, for example, the user can click on the button and a list of available pictures for changing the background will appear for him to choose from.
I've been looking for how to implement such an idea for the third day already and I can't find anything, please help!

Build some sort of workflow in JavaFX

I'm trying to build some sort of visual workflow in JavaFX. I want my application to have one main screen with the next and previous buttons, something like an installer. When a user clicks next, all the elements of the next screen appear in the same element. All previous choices of the user have to be saved. So when a user clicks on the previous button that all of his choices are still there.
How would I go on to do this?
I found these links on Google, but they don't seem to help me. Something like this is a bit the direction that I want to go, but the code in this tutorial isnt't really that good for scene's with a lot of elements.
The DataFX Framework provides a Flow API that can be used to define workflows. By doing so you can simply navigate between MVC Groups by only using annotations or configurations. You can find some examples of the API here:
http://www.guigarage.com/2014/06/datafx-tutorial-5/
http://www.guigarage.com/2015/02/quick-overview-datafx-mvc-flow-api/
http://www.guigarage.com/2015/01/datafx-tutorial-6/
I haven't worked with JavaFX in a while, but I'll start by saying I really hope you are using the JavaFX scene builder.
The way I would do it off the top of my head without going back and relearning JavaFX is to create a main window in the scene builder, and have a sort of central content display area, which holds another custom JavaFX container that contains the content you want to display, of which you can then create several of and swap out which one is being displayed programmatically.
Basically, create several smaller components representing each step or screen and display them programmatically in an owning container.

Usability for confirm message in a long form

I term of usability, I'm wondering what's the best solution to display my confirm message.
I have a long form, and in small screen I can't see the top of the form.
When I'm submitting my form, where is the best position for my message "Your information has been saved"?
In the top of the form, and I add an automatic scroll up ?
In the bottom close to the save button?
In a dialog box?
Other solutions?
I tried to find that on Internet but nothing really interesting. Please quote your source if you have an answer for me.
Thanks!
If this is the only place in your application that has this functionality, it doesn't matter so much; if you already have it working one way or the other somewhere else, consistency is the most important.
Where will the user need to navigate to next? If navigation is at the top, auto-scrolling them to the top and showing a message there might be appropriate.
If the navigation is on the left side, auto-scrolling will lose the user's place in the page, which will make navigation harder. In this case, tell them right next to the submit button.
If there's only one place they can navigate to next, skip the AJAX and do an interstitial "success!" screen that also takes them to the next place they'll want to navigate.
But most of all? Consistency with the rest of your app.

UIWebView not Displaying Keypad

I been trying to debug a problem with some odd behaviour inside a UIWebView. My app uses a UIWebView to display a custom form to collect certain information. When the form is first loaded, filled and submitted, everything behaves as it should. After the first submit, when the form is reloaded, the keypad will not display (but the content scrolls as though it is).
The only solution I have come across is here, but this does not seem like the solution to my problem since that line is already in my app delegate.
Is this a known issue? I don't even know where to start looking to debug this issues.
After much searching SO and Apple forums, it was the view hierarchy that was getting rearranged. In my particular case, a progress indicator was being added as new window (by a coworker, so I can blame someone else for this). The trick was not set this new as the key window and only manipulate the the hidden properties
This is just a quick fix because it was only one line of code that was causing this major problem.

How to show loading animation with fancybox?

I got fancybox working but I have this problem:
First, I can't make the loading image appear. And second, if I use a link to show an image on click, sometimes it fails to show it, because of the time it takes to load it (if it were an image instead of a link, it would have been already loaded by the browser, that's why it never fails with images).
In summary, I have a link, when I click it a modal window with an image should appear. Instead, a white box appears. If I reload the page, sometimes the image appears, sometimes it doesn't.
If it is working some of the time, maybe the problem is elsewhere? Is the picture you are loading particularly large, if you are shift refreshing I have experienced such effects in the past.