Skip to content

Commit 304d000

Browse files
author
ChenDoXiu
committed
fix image
1 parent bbcd905 commit 304d000

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/widgets/mk_image.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class MkImage extends StatelessWidget {
8282
return AnimatedSwitcher(
8383
duration: const Duration(milliseconds: 200),
8484
child: child,
85+
transitionBuilder: (child, animation) {
86+
return FadeTransition(
87+
opacity: animation,
88+
child: child,
89+
);
90+
},
8591
);
8692
},
8793
);

0 commit comments

Comments
 (0)