Перейти к основному содержимому

SliverFillViewport

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
SliverFillViewport✗✗✗link
Атрибуты (устаревшие модели)
final class SliverFillViewportAttributes
implements DuitAttributes<SliverFillViewportAttributes>, SliverChildDelegateProps {
final double viewportFraction;
final bool padEnds;

final List<NonChildWidget>? childObjects;

final bool isBuilderDelegate, addAutomaticKeepAlives, addRepaintBoundaries, addSemanticIndexes;

final int? childCount;

const SliverFillViewportAttributes({
required this.viewportFraction,
required this.padEnds,
required this.isBuilderDelegate,
required this.addAutomaticKeepAlives,
required this.addRepaintBoundaries,
required this.addSemanticIndexes,
this.childObjects,
this.childCount,
});

Пример использования​

SliverFillViewport(
&duit_attributes.SliverFillViewportAttributes{
ViewportFraction: 1.0,
PadEnds: true,
IsBuilderDelegate: false,
AddAutomaticKeepAlives: true,
AddRepaintBoundaries: true,
AddSemanticIndexes: true,
ChildCount: 10,
},
"id",
false,
//delegate,
)