TvGridView constructor
TvGridView({
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- required SliverGridDelegate gridDelegate,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- List<
ScrollGroupDpadFocus> children = const [], - int? semanticChildCount,
- FocusScopeNode? focusScopeNode,
- FocusTraversalPolicy? policy,
- bool descendantsAreFocusable = true,
- bool descendantsAreTraversable = true,
- bool autofocus = false,
- ScrollGroupDpadEventCallback? onUp,
- ScrollGroupDpadEventCallback? onDown,
- ScrollGroupDpadEventCallback? onLeft,
- ScrollGroupDpadEventCallback? onRight,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
Implementation
TvGridView({
super.key,
super.scrollDirection,
super.reverse,
super.controller,
super.primary,
super.physics,
super.shrinkWrap,
super.padding,
required this.gridDelegate,
bool addAutomaticKeepAlives = true,
bool addRepaintBoundaries = true,
bool addSemanticIndexes = true,
super.cacheExtent,
List<ScrollGroupDpadFocus> children = const [],
int? semanticChildCount,
this.focusScopeNode,
FocusTraversalPolicy? policy,
this.descendantsAreFocusable = true,
this.descendantsAreTraversable = true,
this.autofocus = false,
this.onUp,
this.onDown,
this.onLeft,
this.onRight,
super.dragStartBehavior,
super.keyboardDismissBehavior,
super.restorationId,
super.clipBehavior,
super.hitTestBehavior,
}) : childrenDelegate = SliverChildListDelegate(
children,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
),
policy = policy ?? ReadingOrderTraversalPolicy(),
super(semanticChildCount: semanticChildCount ?? children.length);