Skip to content

Commit

Permalink
🚀 Pass asset through widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Oct 10, 2024
1 parent c74740e commit 6cc49c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/widget/builder/image_page_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class _ImagePageBuilderState extends State<ImagePageBuilder> {
);
if (_isLivePhoto && _livePhotoVideoController != null) {
return _LivePhotoWidget(
asset: asset,
controller: _livePhotoVideoController!,
fit: BoxFit.contain,
state: state,
Expand Down Expand Up @@ -161,12 +162,14 @@ class _ImagePageBuilderState extends State<ImagePageBuilder> {

class _LivePhotoWidget extends StatefulWidget {
const _LivePhotoWidget({
required this.asset,
required this.controller,
required this.state,
required this.fit,
required this.textDelegate,
});

final AssetEntity asset;
final VideoPlayerController controller;
final ExtendedImageState state;
final BoxFit fit;
Expand Down

0 comments on commit 6cc49c8

Please sign in to comment.