diff --git a/example/lib/widget/gallery_item_widget.dart b/example/lib/widget/gallery_item_widget.dart index 45901e98..5ea73fc4 100644 --- a/example/lib/widget/gallery_item_widget.dart +++ b/example/lib/widget/gallery_item_widget.dart @@ -21,20 +21,7 @@ class GalleryItemWidget extends StatelessWidget { Widget buildGalleryItemWidget(AssetPathEntity item, BuildContext context) { final navigator = Navigator.of(context); - return GestureDetector( - child: ListTile( - title: Text(item.name), - subtitle: FutureBuilder( - future: item.assetCountAsync, - builder: (_, AsyncSnapshot data) { - if (data.hasData) { - return Text('count : ${data.data}'); - } - return const SizedBox.shrink(); - }, - ), - trailing: _buildSubButton(item), - ), + return InkWell( onTap: () async { if (item.albumType == 2) { showToast("The folder can't get asset"); @@ -108,6 +95,19 @@ class GalleryItemWidget extends StatelessWidget { // final asset = list[i]; // } // }, + child: ListTile( + title: Text(item.name), + subtitle: FutureBuilder( + future: item.assetCountAsync, + builder: (_, AsyncSnapshot data) { + if (data.hasData) { + return Text('count : ${data.data}'); + } + return const SizedBox.shrink(); + }, + ), + trailing: _buildSubButton(item), + ), ); }