An immutable description of how to paint Flutter's logo.
- Inheritance
- Object
- Decoration
- FlutterLogoDecoration
Static Methods
-
lerp(
FlutterLogoDecoration a, FlutterLogoDecoration b, double t) → FlutterLogoDecoration -
Linearly interpolate between two Flutter logo descriptions.
Constructors
- FlutterLogoDecoration({Map<int, Color> swatch: _kDefaultSwatch, Color textColor: const Color(0xFF616161), FlutterLogoStyle style: FlutterLogoStyle.markOnly, EdgeInsets margin: EdgeInsets.zero })
-
Creates a decoration that knows how to paint Flutter's logo.
const
Properties
- hashCode → int
-
read-only
- isComplex → bool
-
read-only
- margin → EdgeInsets
-
How far to inset the logo from the edge of the container.
read-only - style → FlutterLogoStyle
-
Whether and where to draw the "Flutter" text. By default, only the logo itself is drawn.
read-only - swatch → Map<int, Color>
-
The colors to use to paint the logo. This map should contain at least two values, one for 400 and one for 900.
read-only - textColor → Color
-
The color used to paint the "Flutter" text on the logo, if style is FlutterLogoStyle.horizontal or FlutterLogoStyle.stacked. The appropriate color is
const Color(0xFF616161)
(a medium gray), against a white background.read-only - padding → EdgeInsets
-
Returns the insets to apply when using this decoration on a box that has contents, so that the contents do not overlap the edges of the decoration. For example, if the decoration draws a frame around its edge, the padding would return the distance by which to inset the children so as to not overlap the frame.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
createBoxPainter(
[VoidCallback onChanged ]) → BoxPainter -
Returns a
BoxPainter
that will paint this decoration. -
debugAssertIsValid(
) → bool -
In checked mode, throws an exception if the object is not in a valid configuration. Otherwise, returns true.
-
hitTest(
Size size, Point position) → bool -
Tests whether the given point, on a rectangle of a given size, would be considered to hit the decoration or not. For example, if the decoration only draws a circle, this function might return true if the point was inside the circle and false otherwise.
-
lerpFrom(
Decoration a, double t) → FlutterLogoDecoration -
Linearly interpolates from
a
tothis
. -
lerpTo(
Decoration b, double t) → FlutterLogoDecoration -
Linearly interpolates from
this
tob
. -
toString(
[String prefix = '', String prefixIndent ]) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited