AnimatedBookWidget class

A customizable animated book widget with cover, content, and animation control.

Inheritance

Constructors

AnimatedBookWidget({required Widget cover, required Size size, required Widget content, Key? key, EdgeInsets padding = EdgeInsets.zero, double blurRadius = 4, double spreadRadius = 0.5, Offset backgroundBlurOffset = Offset.zero, Color? backgroundColor, Color? backgroundShadowColor, Curve curve = Curves.linear, Duration animationDuration = const Duration(milliseconds: 500), Duration reverseAnimationDuration = const Duration(milliseconds: 500), BorderRadius backgroundBorderRadius = BorderRadius.zero})
Creates an AnimatedBookWidget with fixed content.
AnimatedBookWidget.builder({required Widget cover, required Size size, required AnimatedBookContentBuilder contentBuilder, Widget? contentChild, Key? key, EdgeInsets padding = EdgeInsets.zero, double blurRadius = 4, double spreadRadius = 0.5, Offset backgroundBlurOffset = Offset.zero, Color? backgroundColor, Color? backgroundShadowColor, Curve curve = Curves.linear, Duration animationDuration = const Duration(milliseconds: 500), Duration reverseAnimationDuration = const Duration(milliseconds: 500), BorderRadius backgroundBorderRadius = BorderRadius.zero})
Creates an AnimatedBookWidget with dynamic content using a builder function.

Properties

animationDuration Duration
The duration of the opening animation.
final
backgroundBlurOffset Offset
The offset of the background blur effect.
final
backgroundBorderRadius BorderRadius
The border radius applied to the background.
final
backgroundColor Color?
The background color of the book.
final
backgroundShadowColor Color?
The color of the shadow applied to the background.
final
blurRadius double
The blur radius applied to the background.
final
contentDelegate AnimatedContentDelegate
The delegate responsible for building the animated content.
final
cover Widget
The widget representing the book cover.
final
curve Curve
The animation curve used for opening/closing the book.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsets
Padding applied to the book.
final
reverseAnimationDuration Duration
The duration of the closing animation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
The size of the book.
final
spreadRadius double
How far the shadow is spread.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<AnimatedBookWidget>
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