Skip to content

Commit

Permalink
🚸 Provide ink splash to gallery items
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Jul 15, 2024
1 parent d2bf80e commit b7bc318
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions example/lib/widget/gallery_item_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(
future: item.assetCountAsync,
builder: (_, AsyncSnapshot<int> 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");
Expand Down Expand Up @@ -108,6 +95,19 @@ class GalleryItemWidget extends StatelessWidget {
// final asset = list[i];
// }
// },
child: ListTile(
title: Text(item.name),
subtitle: FutureBuilder<int>(
future: item.assetCountAsync,
builder: (_, AsyncSnapshot<int> data) {
if (data.hasData) {
return Text('count : ${data.data}');
}
return const SizedBox.shrink();
},
),
trailing: _buildSubButton(item),
),
);
}

Expand Down

0 comments on commit b7bc318

Please sign in to comment.