|
@@ -175,7 +175,6 @@ class _PhotoListPageState extends State<PhotoListPage>
|
175
|
175
|
scrollDirection: options.scrollDirection,
|
176
|
176
|
physics: ClampingScrollPhysics(),
|
177
|
177
|
itemCount: count,
|
178
|
|
- itemExtent: options.itemWidth,
|
179
|
178
|
itemBuilder: _buildItem,
|
180
|
179
|
);
|
181
|
180
|
}
|
|
@@ -200,12 +199,15 @@ class _PhotoListPageState extends State<PhotoListPage>
|
200
|
199
|
onTap: () => _onItemClick(data, index),
|
201
|
200
|
child: Stack(
|
202
|
201
|
children: <Widget>[
|
203
|
|
- ImageItem(
|
204
|
|
- entity: data,
|
205
|
|
- themeColor: options.theme.primaryColor,
|
206
|
|
- size: options.thumbSize,
|
207
|
|
- loadingDelegate: options.loadingDelegate,
|
208
|
|
- badgeDelegate: options.badgeDelegate,
|
|
202
|
+ AspectRatio(
|
|
203
|
+ aspectRatio: options.itemRadio,
|
|
204
|
+ child: ImageItem(
|
|
205
|
+ entity: data,
|
|
206
|
+ themeColor: options.theme.primaryColor,
|
|
207
|
+ size: options.thumbSize,
|
|
208
|
+ loadingDelegate: options.loadingDelegate,
|
|
209
|
+ badgeDelegate: options.badgeDelegate,
|
|
210
|
+ ),
|
209
|
211
|
),
|
210
|
212
|
_buildMask(containsEntity(data)),
|
211
|
213
|
_buildSelected(data),
|