experimental library

Classes and components in this sub-module are considered experimental, that is, their API may still be incomplete and subject to change at a more rapid pace than the rest of the Flame code.

However, do not feel discouraged to use this functionality: on the contrary, consider this as a way to help the Flame community by beta-testing new components.

After the components lived here for some time, and when we gain more confidence in their robustness, they will be moved out into the main Flame library.

Classes

Circle
The circle with a given center and a radius.
ColumnComponent
Warning: Experimental. API and behavior may change.
ExpandedComponent
Warning: Experimental. API and behavior may change.
LayoutComponent
LinearLayoutComponent
Superclass for linear layouts. A re-layout is performed when
PaddingComponent
A padding component akin to Flutter's Padding widget. Use padding as you would Flutter's counterpart. While this component is designed to shrink or expand to its child's dimensions, it is fine to set its size explicitly. The child will simply be offset by the padding dimensions.
Polygon
An arbitrary polygon with 3 or more vertices.
Rectangle
An axis-aligned rectangle.
RoundedRectangle
An axis-aligned rectangle with rounded corners.
RowComponent
Warning: Experimental. API and behavior may change.
Shape
Base class for various 2D geometric primitives defined on a Cartesian coordinate plane.
SingleLayoutComponent
A common abstract class for LayoutComponents that are designed to work with only a single child. This includes components like ExpandedComponent and PaddingComponent, and can possibly be used to refactor AlignComponent.