|
@@ -197,7 +197,6 @@ class _PhotoPreviewPageState extends State<PhotoPreviewPage> {
|
197
|
197
|
}
|
198
|
198
|
|
199
|
199
|
Widget _buildThumbItem(BuildContext context, int index) {
|
200
|
|
- // todo 这里需要一个遮盖
|
201
|
200
|
var item = previewSelectedList[index];
|
202
|
201
|
return GestureDetector(
|
203
|
202
|
onTap: () => changeSelected(item, index),
|
|
@@ -213,7 +212,7 @@ class _PhotoPreviewPageState extends State<PhotoPreviewPage> {
|
213
|
212
|
child: StreamBuilder(
|
214
|
213
|
stream: pageStream,
|
215
|
214
|
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
216
|
|
- if(previewSelectedList.contains(item)){
|
|
215
|
+ if (previewSelectedList.contains(item)) {
|
217
|
216
|
return Container();
|
218
|
217
|
}
|
219
|
218
|
return Container(
|
|
@@ -252,6 +251,8 @@ class _BigPhotoImageState extends State<BigPhotoImage>
|
252
|
251
|
builder: (BuildContext context, AsyncSnapshot<File> snapshot) {
|
253
|
252
|
var file = snapshot.data;
|
254
|
253
|
if (snapshot.connectionState == ConnectionState.done && file != null) {
|
|
254
|
+ // todo ios 图片优化,在返回时再生成图片
|
|
255
|
+ // 展示时,不允许放大,使用原生方案生成一个与屏幕同宽的图片
|
255
|
256
|
return Image.file(
|
256
|
257
|
file,
|
257
|
258
|
fit: BoxFit.contain,
|