AnimateGradient class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimateGradient
Constructors
-
AnimateGradient({Key? key, required List<
Color> primaryColors, required List<Color> secondaryColors, Widget? child, Alignment primaryBegin = Alignment.topLeft, Alignment primaryEnd = Alignment.topRight, Alignment secondaryBegin = Alignment.bottomLeft, Alignment secondaryEnd = Alignment.bottomRight, AlignmentGeometry? primaryBeginGeometry, AlignmentGeometry? primaryEndGeometry, AlignmentGeometry? secondaryBeginGeometry, AlignmentGeometry? secondaryEndGeometry, TextDirection textDirectionForGeometry = TextDirection.ltr, AnimationController? controller, Duration duration = const Duration(seconds: 4), bool animateAlignments = true, bool reverse = true}) -
const
Properties
- animateAlignments → bool
-
animateAlignments: set to false if you don't want to animate the alignments.
This can provide you way cooler animations
final
- child → Widget?
-
final
- controller → AnimationController?
-
controller: pass this to have a fine control over the Animation
final
- duration → Duration
-
duration: Time to switch between Gradient.
By default its value is Duration(seconds:4)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- primaryBegin → Alignment
-
primaryBegin: This is begin Alignment for primaryColors.
By default its value is Alignment.topLeft
final
- primaryBeginGeometry → AlignmentGeometry?
-
Alternatively you can use primaryBeginGeometry over primaryBegin for better control over alignments
These are really useful for when you are builing an
rtl
app. primaryBeginGeometry will have higher priority than primaryBeginfinal -
primaryColors
→ List<
Color> -
primaryColors: These will be the starting colors of the Animation.
final
- primaryEnd → Alignment
-
primaryBegin: This is end Alignment for primaryColors.
By default its value is Alignment.topRight
final
- primaryEndGeometry → AlignmentGeometry?
-
Alternatively you can use primaryEndGeometry over primaryEnd for better control over alignments
These are really useful for when you are builing an
rtl
app. primaryEndGeometry will have higher priority than primaryEndfinal - reverse → bool
-
reverse: set it to false if you don't want to reverse the animation.
using that it will go into one direction only
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryBegin → Alignment
-
secondaryBegin: This is begin Alignment for secondaryColors.
By default its value is Alignment.bottomLeft
final
- secondaryBeginGeometry → AlignmentGeometry?
-
Alternatively you can use secondaryBeginGeometry over secondaryBegin for better control over alignments
These are really useful for when you are builing an
rtl
app. secondaryBeginGeometry will have higher priority than secondaryBeginfinal -
secondaryColors
→ List<
Color> -
secondaryColors: These Colors are those in which the primaryColors will transition into.
final
- secondaryEnd → Alignment
-
secondaryEnd: This is end Alignment for secondaryColors.
By default its value is Alignment.bottomRight
final
- secondaryEndGeometry → AlignmentGeometry?
-
Alternatively you can use secondaryEndGeometry over secondaryEnd for better control over alignments
These are really useful for when you are builing an
rtl
app. secondaryEndGeometry will have higher priority than secondaryEndfinal - textDirectionForGeometry → TextDirection
-
This is the TextDirection which is gonna be used to resolve AlignmentGeometry passed through
primaryBeginGeometry, primaryEndGeometry, secondaryBeginGeometry, secondaryEndGeometry
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AnimateGradient> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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