NineGridView constructor

NineGridView({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. double space = 3,
  5. double arcAngle = 0,
  6. int initIndex = 1,
  7. EdgeInsets padding = EdgeInsets.zero,
  8. EdgeInsets margin = EdgeInsets.zero,
  9. AlignmentGeometry? alignment,
  10. Color? color,
  11. Decoration? decoration,
  12. NineGridType type = NineGridType.weChat,
  13. required int itemCount,
  14. required IndexedWidgetBuilder itemBuilder,
  15. int? bigImageWidth,
  16. int? bigImageHeight,
  17. Image? bigImage,
  18. 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);