StoryReaderPage class

短故事阅读器页面组件

包含完整页面结构的版本,适用于路由导航

Inheritance

Constructors

StoryReaderPage({Key? key, required StoryReaderConfig config, String title = '短故事阅读', bool showAppBar = true, Color backgroundColor = Colors.white, String? readerId, Map<String, dynamic>? extra, StoryReaderListener? listener})
const

Properties

backgroundColor Color
背景色
final
config StoryReaderConfig
阅读器配置
final
extra Map<String, dynamic>?
传递给原生层的额外参数
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listener StoryReaderListener?
阅读器事件监听器
final
readerId String?
自定义阅读器标识
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAppBar bool
是否显示应用栏
final
title String
页面标题
final

Methods

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