Skip to content

Commit 6cc49c8

Browse files
committed
🚀 Pass asset through widgets
1 parent c74740e commit 6cc49c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/widget/builder/image_page_builder.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ class _ImagePageBuilderState extends State<ImagePageBuilder> {
120120
);
121121
if (_isLivePhoto && _livePhotoVideoController != null) {
122122
return _LivePhotoWidget(
123+
asset: asset,
123124
controller: _livePhotoVideoController!,
124125
fit: BoxFit.contain,
125126
state: state,
@@ -161,12 +162,14 @@ class _ImagePageBuilderState extends State<ImagePageBuilder> {
161162

162163
class _LivePhotoWidget extends StatefulWidget {
163164
const _LivePhotoWidget({
165+
required this.asset,
164166
required this.controller,
165167
required this.state,
166168
required this.fit,
167169
required this.textDelegate,
168170
});
169171

172+
final AssetEntity asset;
170173
final VideoPlayerController controller;
171174
final ExtendedImageState state;
172175
final BoxFit fit;

0 commit comments

Comments
 (0)