stashed
This commit is contained in:
@@ -4,6 +4,8 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
|
||||
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:photo_view/photo_view_gallery.dart';
|
||||
import 'package:photo_view/photo_view.dart';
|
||||
|
||||
import 'package:imagini/blocs/home_bloc.dart';
|
||||
import 'package:imagini/core/app_provider.dart';
|
||||
@@ -111,6 +113,36 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
// Widget _buildPhotoPreview(){
|
||||
// return Container(
|
||||
// child: PhotoViewGallery.builder(
|
||||
// scrollPhysics: const BouncingScrollPhysics(),
|
||||
// builder: (BuildContext context, int index) {
|
||||
// return PhotoViewGalleryPageOptions(
|
||||
// imageProvider: AssetImage(widget.galleryItems[index].image),
|
||||
// initialScale: PhotoViewComputedScale.contained * 0.8,
|
||||
// heroAttributes: PhotoViewHeroAttributes(tag: galleryItems[index].id),
|
||||
// );
|
||||
// },
|
||||
// itemCount: _totalLength,
|
||||
// loadingBuilder: (context, event) => Center(
|
||||
// child: Container(
|
||||
// width: 20.0,
|
||||
// height: 20.0,
|
||||
// child: CircularProgressIndicator(
|
||||
// value: event == null
|
||||
// ? 0
|
||||
// : event.cumulativeBytesLoaded / event.expectedTotalBytes,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// // backgroundDecoration: widget.backgroundDecoration,
|
||||
// // pageController: widget.pageController,
|
||||
// // onPageChanged: onPageChanged,
|
||||
// )
|
||||
// );
|
||||
// }
|
||||
|
||||
Widget _appLoading(){
|
||||
return Center(
|
||||
child: ConstrainedBox(
|
||||
@@ -141,7 +173,8 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
maxCrossAxisExtent: 500 / queryData.devicePixelRatio,
|
||||
staggeredTileBuilder: (int index) => new StaggeredTile.fit(1),
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return _buildCard(index, desiredContentWidth);
|
||||
return bloc.getMedia(index, desiredContentWidth);
|
||||
// return _buildCard(index, desiredContentWidth);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user