패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.10

whitecodel_reels

앱에 인스타그램과 유사한 리얼을 쉽게 통합할 수 있는 플러터 패키지

AndroidiOSmacOS
30일 다운로드
91
좋아요
27
Pub 점수
160

패키지 설치

flutter pub add whitecodel_reels

패키지 개요

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

whitecodel_reels는 개발자가 앱에 인스타그램 스타일의 리얼을 원활하게 통합할 수 있도록 해주는 플러터 패키지입니다. 스와이프 제스처, 자동 재생 및 상호작용 컨트롤을 갖춘 즉시 사용 가능한 사용자 정의 가능한 비디오 피드를 제공합니다. 소셜 미디어 앱을 위해 설계되었으며 Android, iOS, macOS 플랫폼을 지원하며 간단한 pub 명령어로 쉽게 통합할 수 있습니다. 네이티브처럼 느껴지는 짧은 형식의 비디오 경험을 제공하여 사용자 참여도를 높입니다.

사용 사례

  • 소셜 미디어 앱
  • 비디오 콘텐츠 플랫폼
  • 사용자 생성 콘텐츠 피드
  • 모바일 앱 개선
  • 인터랙티브 스토리텔링 기능

주요 기능

  • 스와이프로 탐색하는 비디오
  • 자동 재생 기능
  • 사용자 정의 가능한 UI 구성 요소
  • 크로스 플랫폼 지원 (Android, iOS, macOS)
  • Flutter 프로젝트와의 간편한 통합

적합한 대상

  • 소셜 앱을 개발하는 개발자
  • 빠른 리얼 구현을 원하는 팀
  • 단편 영상 콘텐츠에 집중하는 앱
  • 사전에 구축된 구성 요소를 찾는 플러터 초보자
  • 네이티브 비디오 경험을 필요로 하는 프로젝트

고려 사항

  • 플랫폼별 디자인 가이드라인을 준수해야 합니다
  • 브랜드 일관성을 위해 추가 스타일링이 필요할 수 있습니다
  • 비디오 렌더링을 위해 외부 종속성에 의존합니다
  • 저사양 기기에서는 성능이 다를 수 있습니다
  • 제공된 API 외의 맞춤 설정 제한

원본 README

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

WhiteCodel Reels

Introduction

This package allows you to implement Instagram-like reels widgets in your Flutter application with minimal code. With whitecodel_reels, you can quickly add a reels widget featuring video content with interactive elements.

Features

  • Caching: The reels widget caches the video content to improve performance and reduce data usage.
  • Customizable: You can customize the reels widget with your own design and layout.
  • Interactive: You can add interactive elements to the reels widget.
  • Easy to use: You can easily integrate the reels widget in your Flutter application with minimal code.
  • Multiscreen Support: Use the controllerTag parameter to create multiple independent reels widgets on different screens or pages.

Installation

To use this package, add whitecodel_reels as a dependency in your pubspec.yaml file.

dependencies:
  whitecodel_reels: ^0.0.9+4

Android Configuration

For caching to work properly on Android, you need to add the following permissions to your AndroidManifest.xml file:

<uses-permission android:name="android.permission.INTERNET"/>

Also, ensure your application has the following configuration set:

<application
    android:networkSecurityConfig="@xml/network_security_config"
    ...
    >

And create a network security configuration file at android/app/src/main/res/xml/network_security_config.xml:

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
  <base-config cleartextTrafficPermitted="true">
    <trust-anchors>
      <certificates src="system" />
    </trust-anchors>
  </base-config>

  <domain-config cleartextTrafficPermitted="true">
    <domain includeSubdomains="true">localhost</domain>
    <domain includeSubdomains="true">127.0.0.1</domain>
  </domain-config>
</network-security-config>

Usage Example

import 'package:flutter/material.dart';
import 'package:whitecodel_reels/models/video_model.dart';
import 'package:whitecodel_reels/whitecodel_reels.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'WhiteCodel Reels',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
          body: WhiteCodelReels(
              key: UniqueKey(),
              context: context,
              loader: const Center(
                child: CircularProgressIndicator(),
              ),
              videoList: List.generate(
                10,
                (index) => VideoModel(
                    url:
                        'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4'),
              ),
              isCaching: true,
              controllerTag: "home_reels", // Use a unique tag for each screen
              builder: (context, index, child, videoPlayerController,
                  pageController) {
                // Widget builder logic
                return child;
              }),
        ));
  }
}

Multiscreen Support

You can use multiple WhiteCodelReels widgets on different screens or pages by providing a unique controllerTag for each instance. This ensures each reels widget maintains its own state and playback independently.

// Example: Using different controllerTag for different screens
WhiteCodelReels(
  controllerTag: "home_reels",
  // ...other params...
);

WhiteCodelReels(
  controllerTag: "profile_reels",
  // ...other params...
);

Future Plans

  • Customizable: Add more customization options to the reels widget.
  • Speed Optimization: Improve the performance of the reels widget by optimizing the video loading speed.

AUTHOR

Bhawani Shankar

카테고리

의존성

의존성 목록 5 개

소스 저장소

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

아직 데이터가 없습니다.