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
{{ message }}
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
Just came across this project and it does almost everything that I needed it for. Only thing is that I want to have it render an overlay widget when focused. Played around with the ode and all it needs is this...
Define callback
typedef OverlayBuilder = Widget Function(
BuildContext context,
Rect parentRect,
);
Add a field in FocusWidget settable from the constructor and static builder
final OverlayBuilder? overlayBuilder;
Then where you have defined the children, it can be called.
final overlayBuilder = widget.overlayBuilder;
final children = <Widget>[
Listener(
<removed for brevity>
),
if (overlayBuilder != null) overlayBuilder(context, rect),
];
Just came across this project and it does almost everything that I needed it for. Only thing is that I want to have it render an overlay widget when focused. Played around with the ode and all it needs is this...
Define callback
Add a field in
FocusWidget
settable from the constructor and static builderThen where you have defined the children, it can be called.
I am using it this way which seems to work...
This will open an overlay pinned to the bottom right of the widget
The text was updated successfully, but these errors were encountered: