BookFx class

作者: lixp 创建时间: 2022/8/1 16:05 类介绍:模拟书籍翻页效果

Inheritance

Constructors

BookFx.new({Duration? duration, required Size size, required Widget currentPage(int index), required Widget nextPage(int index), Color? currentBgColor, int pageCount = 10000, dynamic nextCallBack(int index)?, dynamic lastCallBack(int index)?, required BookController controller, Key? key})
const

Properties

controller BookController
final
currentBgColor Color?
当前翻页的背面色值
final
currentPage Widget Function(int index)
一般情况页面布局是固定的 变化的是布局当中的内容 不过若是页面之间有布局不同时,须同时更新布局 当前页布局 index 当前页码
final
duration Duration?
翻页时长
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lastCallBack → dynamic Function(int index)?
上一页回调
final
nextCallBack → dynamic Function(int index)?
下一页回调
final
nextPage Widget Function(int index)
下一页布局 index 下一页页码
final
pageCount int
书籍页数
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
书籍区域
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BookFxState
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, int wrapWidth = 65}) 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