dynamic_background library

Classes

ColorSchemes
DynamicBg
A widget that draws a dynamic background with a child widget on top of it.
FaderPainterData
The data needed to paint a fader background.
PainterData
This is an abstract class that is used to create blueprints for drawing the background.
PrebuiltPainters
Prebuilt painters for use with the DynamicBg widget.
ScrollerPainterData
The data needed to paint a scroller background.

Enums

FaderBehavior
The behavior of the fader.
ScrollDirection
The direction the scroller should move in.
ScrollerShape
The shapes that will be scrolling across the screen.
ScrollerShapeOffset
How to align the shapes that will be scrolling.

Extensions

ColorListSorter on List<Color>
Extension for sorting a list of colors.

Properties

screenSize Size
Returns the size of the screen in logical pixels, without the need for a BuildContext.
no setter

Functions

deg2Rad(num deg) double
This method converts degrees to radians.
rad2Deg(num rad) double
This method converts radians to degrees.
randDouble(double min, double max) double
This method generates and returns a random double from min to max (inclusive).
randInt(int min, int max) int
This method generates and returns a random integer from min to max (inclusive).

Exceptions / Errors

EmptyColorListException
The exception that is thrown when an empty list is used to initialize a FaderPainter.
IllegalShapeSizeException
The exception that is thrown when a shape that is to be drawn is given illegal dimensions.
MismatchedPainterAndDataException
The exception that is thrown when a Painter is initialized with PainterData that is not compatible with it.