NineGridView constructor
NineGridView({
- Key? key,
- double? width,
- double? height,
- double space = 3,
- double arcAngle = 0,
- int initIndex = 1,
- EdgeInsets padding = EdgeInsets.zero,
- EdgeInsets margin = EdgeInsets.zero,
- AlignmentGeometry? alignment,
- Color? color,
- Decoration? decoration,
- NineGridType type = NineGridType.weChat,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- int? bigImageWidth,
- int? bigImageHeight,
- Image? bigImage,
- String? bigImageUrl,
create NineGridView. If you want to show a single big picture. It is recommended to use a medium-quality picture, because the original picture is too large and takes time to load. 单张大图建议使用中等质量图片,因为原图太大加载耗时。 you need input (bigImageWidth + bigImageHeight) or (bigImage + bigImageUrl).
Implementation
NineGridView({
Key? key,
this.width,
this.height,
this.space = 3,
this.arcAngle = 0,
this.initIndex = 1,
this.padding = EdgeInsets.zero,
this.margin = EdgeInsets.zero,
this.alignment,
this.color,
this.decoration,
this.type = NineGridType.weChat,
required this.itemCount,
required this.itemBuilder,
this.bigImageWidth,
this.bigImageHeight,
this.bigImage,
this.bigImageUrl,
}) : super(key: key);