Untitled
unknown
dart
2 years ago
2.4 kB
1
Indexable
Never
controller.userVideos.isEmpty ? Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ const SizedBox( height: 50.0, ), Center( child: Text( "You don't have any videos yet" .tr, style: Get.textTheme.headline5, ), ), ], ) : GridView.builder( shrinkWrap: true, scrollDirection: Axis.vertical, padding: EdgeInsets.zero, physics: const NeverScrollableScrollPhysics(), addAutomaticKeepAlives: true, addRepaintBoundaries: false, gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( crossAxisCount: 3, ), cacheExtent: Get.width * 0.25, itemCount: controller.userVideos.length, itemBuilder: (context, indexPath) { return VideoItemWidget( videoItem: controller .userVideos[indexPath], ); }, ), ),