You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using this library on the home screen of an app. The homescreen has some widgets that get loaded dynamically based on what's fetched on the server.
Each home widget has the following build logic:
@override
Widget build(BuildContext context, WidgetRef ref) {
if (qod == null) {
return const SizedBox();
}
//return the actual widget
}
If I wrap this whole widget into a Focus node, I get only a tiny dot highlighted (which probably corresponds to the empty SizedBox(). If I wrap only the actual box, I get the grey overlay without any highlight at all.
I guess this happens because at the time the Onboarding widget is initialized, the focusnodes are wrapping something that either will change (SizedBox) or doesn't exists yet (the actual widget).
How can I solve this problem?
I tried to call the show() function after a delay, but nothing has changed:
Same here, on Android it seems fine but there's an issue on iOS which has slightly longer/different page load animations. I can remove the animations but would rather find a better solution, and not just using a delay and it's inconsistent and inaccurate.
Future<void> waitForRenderSettled() async {
// Loop until there are no scheduled frameswhile (SchedulerBinding.instance.hasScheduledFrame) {
// Wait for the end of the current frameawaitSchedulerBinding.instance.endOfFrame;
}
}
Hi, I'm using this library on the home screen of an app. The homescreen has some widgets that get loaded dynamically based on what's fetched on the server.
Each home widget has the following build logic:
If I wrap this whole widget into a Focus node, I get only a tiny dot highlighted (which probably corresponds to the empty SizedBox(). If I wrap only the actual box, I get the grey overlay without any highlight at all.
I guess this happens because at the time the Onboarding widget is initialized, the focusnodes are wrapping something that either will change (SizedBox) or doesn't exists yet (the actual widget).
How can I solve this problem?
I tried to call the show() function after a delay, but nothing has changed:
The text was updated successfully, but these errors were encountered: