VideoShopFlutter class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- VideoShopFlutter
Constructors
-
VideoShopFlutter({Key? key, required List<
Map< listData, Widget customVideoInfo(VideoModel? video)?, Widget followWidget(VideoModel? video)?, Widget likeWidget(VideoModel? video, dynamic (int likes, bool liked))?, Widget commentWidget(VideoModel? video)?, Widget buyWidget(VideoModel? video)?, Widget viewWidget(VideoModel? video, int index)?, required int pageSize, required dynamic loadMore(int page, int pageSize), EdgeInsetsGeometry? informationPadding, required List<String, dynamic> >String> videoWatched, int? lastSeenPage, EdgeInsetsGeometry? actionsPadding, AlignmentGeometry? informationAlign, AlignmentGeometry? actionsAlign, dynamic updateLastSeenPage(int lastSeenPage)?, bool? enableBackgroundContent}) -
Create Video Player Layout Like Tiktok.
const
Properties
- actionsAlign → AlignmentGeometry?
-
Alignment of video actions.
final
- actionsPadding → EdgeInsetsGeometry?
-
Padding of video actions.
final
- buyWidget → Widget Function(VideoModel? video)?
-
Create action buy widget.
final
- commentWidget → Widget Function(VideoModel? video)?
-
Create action comment widget.
final
- customVideoInfo → Widget Function(VideoModel? video)?
-
Create video information widget.
final
- enableBackgroundContent → bool?
-
On/Off background content.
final
- followWidget → Widget Function(VideoModel? video)?
-
Create follow action widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- informationAlign → AlignmentGeometry?
-
Alignment of video information.
final
- informationPadding → EdgeInsetsGeometry?
-
Padding of video information.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastSeenPage → int?
-
Index of last seen page.
final
- likeWidget → Widget Function(VideoModel? video, dynamic (int likes, bool liked))?
-
Create like action widget.
final
-
listData
→ List<
Map< String, dynamic> > -
Your input data.
final
- loadMore → dynamic Function(int page, int pageSize)
-
Load more data.
final
- pageSize → int
-
Your pageSize when you call get-list API.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Create action share widget.
final
- updateLastSeenPage → dynamic Function(int lastSeenPage)?
-
Callback function to update last seen page.
final
-
videoWatched
→ List<
String> -
Id of your watched videos.
final
- viewWidget → Widget Function(VideoModel? video, int index)?
-
Create action view product widget
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< VideoShopFlutter> -
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