カテゴリー・パッケージ・リポジトリを検索

パッケージ詳細v2.0.0

reels_viewer

Instagram Reels ビューアのスタイルで作成されたパッケージであり、動画の URL を渡すことで Reels ビューを取得できます。

AndroidiOSWebmacOS
30日間ダウンロード
416
いいね数
37
Pub ポイント
130

パッケージをインストール

flutter pub add reels_viewer

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

reels_viewer パッケージは、Flutter アプリケーションに Instagram Reels 風のビデオビューアーを統合できるようにします。ビデオ URL を指定することで、ユーザーはフルスクリーンでスワイプ可能なビデオ体験を楽しみ、滑らかな再生と直感的な操作が可能です。ソーシャルメディアアプリ向けに設計されており、Android、iOS、Web、macOS など複数のプラットフォームをサポートし、デバイス間で一貫したユーザー体験を提供します。軽量で実装が簡単なため、魅力的なビデオコンテンツを重視するコンテンツ主体のアプリに最適です。

用途

  • ソーシャルメディアアプリ
  • 動画コンテンツプラットフォーム
  • アプリ内動画ギャラリー
  • ユーザー生成コンテンツフィード
  • インタラクティブな物語の機能

主な機能

  • Instagram Reelsを意識したUI
  • スワイプ可能な動画ナビゲーション
  • 動画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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。