Generate a custom render object

Answer a few questions about the render object you need — children, paint, hit testing, sizing — and RenderKit produces a Flutter skeleton tailored to your answers, backed by AI skills trained on render object patterns and a battery of tests to validate what you build.

Generate a Render Object

AI skills trained on render objects

RenderKit's skills understand the render object lifecycle, not just Flutter syntax — so the code it generates follows the conventions real render objects need.

Skeleton generation

Turns your answers about children, paint, and hit testing into a working RenderBox or RenderSliver subclass.

Constraint reasoning

Knows when a render object needs specified constraints versus an intrinsic size, and lays out performLayout accordingly.

Paint & compositing guidance

Flags when a render object needs a compositing layer, and generates the matching paint and hit-test overrides.

A battery of tests for what you build

Every generated render object comes with a matching test suite, so you can confirm it behaves correctly before it ships.

Layout tests

Verifies constraint handling, intrinsic sizing, and dry layout against the inputs you specified.

Paint tests

Golden-image comparisons and a paint call inspector to catch unexpected canvas operations.

Hit-testing tests

Confirms the render object reports hits exactly where you said it should be hittable — and nowhere else.

Semantics tests

Checks that the semantics tree your render object describes is complete and accessible.