Feature background disapear randomly on addPostFrameCallback
See original GitHub issuewhen I have multiple features to show up at my ap startup the first one’s background disappears randomly, even if I restart the app, it works perfectly when I activate it with a button.
As you can see the feature’s background disappears, I put a dark background to show you that the description text is there.
This is the result when I trigger the sequence with a button, everything OK.
Here is my code.
//helper class
class FeatureManager {
static const keyMenuSearch = 'key_menu_search';
static const keyButtonSearch = 'key_button_Search';
static const featuresSearch = {keyMenuSearch, keyButtonSearch};
}
@override
void initState() {
SchedulerBinding.instance.addPostFrameCallback((Duration duration) {
showFeatures();
});
super.initState();
}
void showFeatures() {
FeatureDiscovery.clearPreferences(context, FeatureManager.featuresSearch).then((_) {
FeatureDiscovery.discoverFeatures(context, FeatureManager.featuresSearch);
});
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Background image keeps disappearing - Stack Overflow
My background images keep disappearing. They disappear at random times. I can temporarily fix it by rewriting the code (not just ...
Read more >Flutter dialog position - Caritas Castellaneta
It creates a Positioned object with a default value set to 0. In there, add a Flutter app that demonstrates how to use...
Read more >Desktop background randomly disappears when refresh the ...
Original Title: [Windows 8.1] My background keeps disappearing and coming back So I have Windows 8.1 and I don't know what's causing it, ......
Read more >Flutter dialog position - cittafamiglia.it
Before adding Dialog you must call showDialog function to change current screen state ... a dialog's position, size and background? flutter flutter-layout.
Read more >How to Prevent Disappearing Wallpaper
If you find that your Windows wallpaper periodically disappears, there are two likely explanations. The first is that the "Shuffle" feature for the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem version: “0.13.0”
After several attempts I found that this fixes the problem, I don’t know why, I’m not an expert, but for now, it solves the problem.
One-second custom duration worked, less than that won’t work.