Package selection guidance compiled from public package information, community data, and project usage.
The reels_viewer package enables developers to integrate an Instagram Reels-style video viewer into their Flutter applications. By providing a video URL, users can enjoy a full-screen, swipeable video experience with smooth playback and intuitive controls. Designed for social media apps, it supports multiple platforms including Android, iOS, Web, and macOS, offering a consistent user experience across devices. The package is lightweight and easy to implement, making it ideal for content-heavy applications that prioritize engaging video consumption.
Use cases
Social media apps
Video content platforms
In-app video galleries
User-generated content feeds
Interactive storytelling features
Key features
Instagram Reels-inspired UI
Swipeable video navigation
Support for video URLs
Cross-platform compatibility
Smooth playback performance
Suitable for
Developers building social media apps
Apps focused on video content
Creators seeking immersive video experiences
Projects requiring minimal setup for video viewers
Teams targeting multiple platforms
Considerations
Requires valid video URLs
Limited customization options
Depends on external video hosting
Not optimized for long-form videos
May need additional styling for branding
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
reels_viewer
This is a package created in the style of the instagram reels viewer, with which you can pass video url and get reels view.
Usage
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:...reels_viewer:^1.0.0
In your library add the following import:
import'package:reels_viewer/reels_viewer.dart';
For help getting started with Flutter, view the online documentation.
Example
Initializing a List
List<ReelModel> reelsList = [
ReelModel(
'https://assets.mixkit.co/videos/preview/mixkit-tree-with-yellow-flowers-1173-large.mp4',
'Darshan Patil',
likeCount: 2000,
isLiked: true,
musicName: 'In the name of Love',
reelDescription: "Life is better when you're laughing.",
profileUrl:
'https://opt.toiimg.com/recuperator/img/toi/m-69257289/69257289.jpg',
commentList: [
ReelCommentModel(
comment: 'Nice...',
userProfilePic:
'https://opt.toiimg.com/recuperator/img/toi/m-69257289/69257289.jpg',
userName: 'Darshan',
commentTime: DateTime.now(),
),
ReelCommentModel(
comment: 'Superr...',
userProfilePic:
'https://opt.toiimg.com/recuperator/img/toi/m-69257289/69257289.jpg',
userName: 'Darshan',
commentTime: DateTime.now(),
),
ReelCommentModel(
comment: 'Great...',
userProfilePic:
'https://opt.toiimg.com/recuperator/img/toi/m-69257289/69257289.jpg',
userName: 'Darshan',
commentTime: DateTime.now(),
),
]
),
ReelModel(
'https://assets.mixkit.co/videos/preview/mixkit-father-and-his-little-daughter-eating-marshmallows-in-nature-39765-large.mp4',
'Rahul',
musicName: 'In the name of Love',
reelDescription: "Life is better when you're laughing.",
profileUrl:
'https://opt.toiimg.com/recuperator/img/toi/m-69257289/69257289.jpg',
),
ReelModel(
'https://assets.mixkit.co/videos/preview/mixkit-mother-with-her-little-daughter-eating-a-marshmallow-in-nature-39764-large.mp4',
'Rahul',
),
];
Simple implementation
ReelsViewer(
reelsList: reelsList,
appbarTitle: 'Instagram Reels',
onShare: (url) {
log('Shared reel url ==> $url');
},
onLike: (url) {
log('Liked reel url ==> $url');
},
onFollow: () {
log('======> Clicked on follow <======');
},
onComment: (comment) {
log('Comment on reel ==> $comment');
},
onClickMoreBtn: () {
log('======> Clicked on more option <======');
},
onClickBackArrow: () {
log('======> Clicked on back arrow <======');
},
onIndexChanged: (index){
log('======> Current Index ======> $index <========');
},
showProgressIndicator: true,
showVerifiedTick: false,
showAppbar: false,
);