-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to keep suggestion box "as is" until loading is done? #44
Comments
Do you have a way to easily recreate this behavior? k
A little github project based off the stock Flutter project create or something?
… On Feb 15, 2019, at 3:11 AM, MagnusW ***@***.***> wrote:
Maybe I'm doing something wrong, but when testing with suggestions that take only 100 ms to load, the box disappears and reappears, even with
animationStart: 1,
animationDuration: Duration(microseconds: 0),
IMHO it would look much nicer if the current suggestions would stay until new ones are loaded. Would it make sense to have an option (or set a duration) for not updating the suggestion box at all until new suggestions are loaded?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#44>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8M7arM0SFROMhGuNZIEPRGQ4NDhh3Rks5vNmu9gaJpZM4a9JVS>.
|
That is interesting indeed. So the old suggestions will keep showing until new suggestions have been loaded. I think that might work, but will require some significant rewrite on some parts of the plugin. Also, we will have to make sure that this option plays well with the other options that we currently have, like the animation, etc. For now, if you want, we have an option |
I agree it would be better to maintain the old result set as currently it's quite distracting to the end user (esp if it takes a second or more to return results). At the very least, it should be an option. We may need to uninstall until this behaviour is modified. |
@wsakka -- I have never seen this behavior and we use plugin all over the place. Can you create (or someone) some reproducible little project that shows this? As a work around why can't you await the loading yourself (I assume you're passing in a Future?) and once complete call setState() to rebuild .. or maybe make the callback async and await in there? Can't tell exactly what you are doing .. what is the code? |
@sjmcdowall I know you didn't bring it up but my apologies first of all for the tone of my last sentence, upon re-reading it sounded angry in tone when that wasn't my intention. It was just that the project manager did not like the behaviour so we may have to find another solution. That being said, I captured a video of what I was referring to. Basically, if the user is typing any address (in this case 58 simeon lane), they should have the option of selecting the address that is already there. |
Well that is very interesting!
I'd like to see the code behind this -- something seems .. odd .. about what you are seeing .. but I certainly agree this isn't a very good User Experience !
The searching seems pretty slow too .. which doesn't help ..
… On Mar 5, 2019, at 6:16 AM, wsakka ***@***.***> wrote:
@sjmcdowall <https://github.com/sjmcdowall> I know you didn't bring it up but my apologies first of all for the tone of my last sentence, upon re-reading it sounded angry in tone when that wasn't my intention. It was just that the project manager did not like the behaviour so we may have to find another solution.
That being said, I captured a video of what I was referring to. Basically, if the user is typing any address (in this case 58 simeon lane), they should have the option of selecting the address that is already there.
https://streamable.com/spsp6 <https://streamable.com/spsp6>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#44 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8M7Ur2jQw0byZhz0kO0xgnPwElDk_Aks5vTlITgaJpZM4a9JVS>.
|
I was using the Network Link Conditioner to simulate a slow connection (sorry meant to mention that). I'm away from my computer so I should have some sample code tonight. Edit: However, the video does seem to support the initial issue raised by @magnus-lpa . |
Hi guys. Made some changes in my fork that I believe will address this issue. Haven't found any bugs when I checked but let me know how it works. #66 . My fork to test: https://github.com/KaYBlitZ/flutter_typeahead.git . The changes will make this behavior the default. I believe maintain the old results before the updates is the intended way for this widget to function instead of constantly resizing with the circular progress indicator. |
Make sure to switch to the develop branch when testing.... |
Yes -- as I learned the hard way ... :)
YOu need something like:
git:
url: (the URL)
ref: develop
To get the proper version
… On Mar 5, 2019, at 4:17 PM, Kenneth Liang ***@***.***> wrote:
Make sure to switch to the develop branch when testing....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#44 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8M7YcVtCXhwqf8in7IMao5KGbcsFcmks5vTt7lgaJpZM4a9JVS>.
|
Fixed in 1.2.0 |
Maybe I'm doing something wrong, but when testing with suggestions that take only 100 ms to load, the box disappears and reappears, even with
IMHO it would look much nicer if the current suggestions would stay until new ones are loaded. Would it make sense to have an option (or set a duration) for not updating the suggestion box at all until new suggestions are loaded?
The text was updated successfully, but these errors were encountered: