분류, 패키지 및 저장소 검색

패키지 상세v2.0.0

reels_viewer

이 패키지는 인스타그램 리얼 뷰어 스타일로 만들어졌으며, 비디오 URL을 전달하여 리얼 뷰를 얻을 수 있습니다.

AndroidiOSWebmacOS
30일 다운로드
416
좋아요
37
Pub 점수
130

패키지 설치

flutter pub add reels_viewer

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

reels_viewer 패키지는 개발자가 Flutter 애플리케이션에 인스타그램 리얼 스타일의 비디오 뷰어를 통합할 수 있도록 합니다. 비디오 URL을 제공함으로써 사용자는 전체 화면에서 스와이프 가능한 비디오 경험을 즐기며, 부드러운 재생과 직관적인 컨트롤을 이용할 수 있습니다. 소셜 미디어 앱을 위한 설계로, 안드로이드, iOS, 웹, 맥OS 등 여러 플랫폼을 지원하며 장치 간 일관된 사용자 경험을 제공합니다. 가볍고 구현이 쉬워 콘텐츠 중심 애플리케이션에서 영상 소비를 우선시하는 경우에 이상적입니다.

사용 사례

  • 소셜 미디어 앱
  • 비디오 콘텐츠 플랫폼
  • 앱 내 동영상 갤러리
  • 사용자 생성 콘텐츠 피드
  • 인터랙티브 스토리텔링 기능

주요 기능

  • 인스타그램 리얼스를 영감으로 한 사용자 인터페이스
  • 스와이프 가능한 비디오 탐색
  • 비디오 URL 지원
  • 크로스 플랫폼 호환성
  • 부드러운 재생 성능

적합한 대상

  • 소셜 미디어 앱을 개발하는 개발자
  • 비디오 콘텐츠에 집중하는 앱
  • 몰입형 비디오 경험을 찾는 크리에이터
  • 비디오 시청자에게 최소한의 설정이 필요한 프로젝트
  • 다중 플랫폼을 대상으로 하는 팀

고려 사항

  • 유효한 비디오 URL가 필요합니다
  • 제한된 사용자 정의 옵션
  • 외부 비디오 호스팅에 의존합니다
  • 장시간 영상에 최적화되지 않음
  • 브랜딩을 위해 추가적인 스타일링이 필요할 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

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,
);

Options

Name Description Default Return
reelsList For assign reels list [] -
appbarTitle For assign appbar title Reels View -
showProgressIndicator Hide/Show progress Indicator true -
showVerifiedTick Hide/Show profile verified tick true -
showAppbar Hide/Show appbar true -
onShare Trigger when click on Share btn - reels url
onLike Trigger when click on Like btn - reels url
onFollow Trigger when click on Follow btn - -
onComment Trigger when click on Comment Bnt - string
onClickMoreBtn Trigger when click on Three dot btn - -
onClickBackArrow Trigger when click on Back Arrow - -
onIndexChanged Trigger when Reel change - current reel index

Demo APK

Click here for download demo app.

ScreenShots

initial view

Screenshot 1

Screenshot 2

Screenshot 3

Demo video

Click here for watch demo video.

카테고리

의존성

의존성 목록 5 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.