LitGradientCard class
A widget combining layout dependent box constraints and gradient style painting.
It's box constraints are set using the landscapeWidthFactor to reduce the overall size of the container once the device orientation has been changed to landscape.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LitGradientCard
Constructors
-
LitGradientCard({Key? key, EdgeInsets padding = const EdgeInsets.all(0.0), EdgeInsets margin = const EdgeInsets.all(0.0), double landscapeWidthFactor = 0.60, List<
BoxShadow> boxShadow = const [const BoxShadow(blurRadius: 4.0, color: Colors.black26, offset: Offset(-2, 2.0), spreadRadius: 1.0)], BorderRadius borderRadius = const BorderRadius.all(Radius.circular(22.0)), Alignment begin = Alignment.topRight, Alignment end = Alignment.bottomLeft, List<Color> colors = const [Colors.white, const Color(0xFFE4E4E4)], Widget? child}) -
Creates a LitGradientCard.
const
Properties
- begin → Alignment
-
The gradient's begin alignment.
final
- borderRadius → BorderRadius
-
The border radius of the card.
final
-
boxShadow
→ List<
BoxShadow> -
The box shadow of the card.
final
- child → Widget?
-
The child widget wrapped by the card.
final
-
colors
→ List<
Color> -
The gradient's colors.
final
- end → Alignment
-
The gradient's end alignment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- landscapeWidthFactor → double
-
The factor on which the landscape width will be determined. Defaults to
0.6
.final - margin → EdgeInsets
-
The inner spacing. Defaults to an empty margin.
final
- padding → EdgeInsets
-
The outer spacing. Defaults to an empty padding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited