DramaSwipeFlowNativeView class
内嵌原生短剧滑滑流视图
通过 PlatformView 将原生短剧滑滑流内嵌到 Flutter 中, 提供类似抖音的垂直滑动短剧体验。
使用前请确保:
- 已成功调用
PangrowthContent.initialize和PangrowthContent.start。 - GroMore(gromore_ads) SDK 完成初始化。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DramaSwipeFlowNativeView
Constructors
-
DramaSwipeFlowNativeView({Key? key, required DramaSwipeFlowConfig config, DramaSwipeFlowController? controller, DramaSwipeFlowListener? listener, String? swipeFlowId, Map<
String, dynamic> ? extra, Set<Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{Factory<VerticalDragGestureRecognizer>(VerticalDragGestureRecognizer.new)}})OneSequenceGestureRecognizer> > -
const
Properties
- config → DramaSwipeFlowConfig
-
滑滑流配置
final
- controller → DramaSwipeFlowController?
-
滑滑流控制器(可选)
final
-
extra
→ Map<
String, dynamic> ? -
传递给原生层的额外参数
final
-
gestureRecognizers
→ Set<
Factory< OneSequenceGestureRecognizer> > -
自定义手势识别器
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 → DramaSwipeFlowListener?
-
滑滑流事件监听器
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- swipeFlowId → String?
-
自定义滑滑流标识(用于事件过滤),默认自动生成
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DramaSwipeFlowNativeView> -
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