Skip to content

Commit ffe1633

Browse files
committed
♻️ Change the transition for the viewer.
1 parent d156952 commit ffe1633

File tree

2 files changed

+2
-172
lines changed

2 files changed

+2
-172
lines changed

lib/src/constants/zoom_page_transition.dart

Lines changed: 0 additions & 166 deletions
This file was deleted.

lib/src/widget/asset_picker_viewer.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import 'package:provider/provider.dart';
1515
import 'package:wechat_assets_picker/wechat_assets_picker.dart';
1616

1717
import '../constants/constants.dart';
18-
import '../constants/zoom_page_transition.dart';
18+
1919
import 'builder/audio_page_builder.dart';
2020
import 'builder/fade_image_builder.dart';
2121
import 'builder/image_page_builder.dart';
@@ -98,11 +98,7 @@ class AssetPickerViewer extends StatefulWidget {
9898
Animation<double> secondaryAnimation,
9999
Widget child,
100100
) {
101-
return ZoomPageTransition(
102-
animation: animation,
103-
secondaryAnimation: secondaryAnimation,
104-
child: child,
105-
);
101+
return FadeTransition(opacity: animation, child: child);
106102
},
107103
);
108104
final List<AssetEntity> result =

0 commit comments

Comments
 (0)