Comments (5)
Thanks for taking the time to make a PR!
Instead of accessing the widget directly from InflatedChildHandle, I would just assign it to parentData after calling inflate:
final widget = Text('Hello, World!');
final child = inflate(widget);
child.parentData = widget;
from boxy.
I read the docs but couldn't find a way to get the child widget of BoxyChild
without writing a lot of boilerplate code. Is the addition of a widget property (#12) in InflatedChildHandle
possible?
from boxy.
Thank you for answering. I glossed over this part of the documentation. I should have read the docs more thoroughly.
from boxy.
No worries, this would still be a nice feature to have! It should be possible to expose the BuildContext of each child
from boxy.
Implemented in 2.0.5!
https://pub.dev/documentation/boxy/latest/inflating_element/InflatedChildHandle/context.html
from boxy.
Related Issues (20)
- Finding child Offeset HOT 4
- How to remove a rendered widget? HOT 4
- Ignore layout for somes childs ? HOT 2
- [Question] - Can I use Boxy to build a Flutter version of Angular FlexLayouts HOT 2
- Get widget's global position inside custom layout delegate HOT 3
- Problem with rendering a CustomBoxy when a new item is added to an animated list HOT 3
- Something wrong when using custom boxy and layer link HOT 3
- Strange behavior occurs when a Wrap widget is used in a Custom boxy. HOT 2
- [Question] Centered widget or Scrollable widget HOT 3
- Custom layout protocols
- Make `BoxyFlex` Implement `Flex` HOT 1
- [Question] is there a simple way to change the Tree View so that it is horizontally oriented? HOT 2
- OverflowPadding hitTest HOT 3
- `RedirectPointer` is not importable HOT 1
- [Feature Request] Sliver OverflowPadding
- Skip ignored children in `RenderObject.visitChildrenForSemantics` HOT 2
- [Feature request] `BaseBoxyDelegate.getChildOrNull` HOT 1
- [Question] Layout child reorder
- Overriden shouldRelayout doesn't have access to BoxyDelegate HOT 4
- `layers.clipPath()` does not apply `paintOffset` to `path` correctly when used in `paint()`. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boxy.