पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.0.10

whitecodel_reels

एक फ्लटर पैकेज जो आपके ऐप में इंस्टाग्राम जैसे रील्स को आसानी से एकीकृत करने में मदद करता है

AndroidiOSmacOS
30-दिन डाउनलोड
91
लाइक
27
Pub अंक
160

पैकेज इंस्टॉल करें

flutter pub add whitecodel_reels

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

whitecodel_reels एक Flutter पैकेज है जो विकासकर्मियों को उनके एप्लिकेशन में Instagram-शैली के रील्स को बिना किसी दिक्कत के एकीकृत करने में सक्षम बनाता है। यह स्वाइप गेस्चर, ऑटोप्ले और इंटरैक्टिव कंट्रोल के साथ तैयार-उपयोग के लिए तैयार, कस्टमाइज़ेबल वीडियो फीड प्रदान करता है। सोशल मीडिया एप्लिकेशन के लिए डिज़ाइन किया गया, यह Android, iOS और macOS प्लेटफॉर्म का समर्थन करता है, आसान इंटीग्रेशन के लिए सरल pub कमांड के माध्यम से चलता है। यह पैकेज नेटिव-जैसा छोटे फॉर्मेट वीडियो अनुभव प्रदान करके उपयोगकर्ता भागीदारी को बढ़ाता है।

उपयोग

  • सोशल मीडिया ऐप्स
  • वीडियो सामग्री प्लेटफॉर्म
  • उपयोगकर्ता-जनित सामग्री फीड्स
  • मोबाइल ऐप सुधार
  • इंटरैक्टिव स्टोरीटेलिंग फीचर्स

मुख्य विशेषताएँ

  • स्वाइप-टू-नेविगेट वीडियो
  • स्वचालित प्रसारण कार्यक्षमता
  • कस्टमाइज़ेबल यूआई कंपोनेंट्स
  • क्रॉस-प्लेटफ़ॉर्म समर्थन (Android, iOS, macOS)
  • Flutter प्रोजेक्ट्स के साथ आसान एकीकरण

इनके लिए उपयुक्त

  • सोशल ऐप बनाने वाले डेवलपर्स
  • त्वरित रील कार्यान्वयन के लिए टीमें
  • छोटे फॉर्म वीडियो सामग्री पर केंद्रित ऐप्स
  • प्री-बिल्ट कंपोनेंट्स के लिए फ्लटर शुरुआती लोग
  • मूल वीडियो अनुभव की आवश्यकता वाले प्रोजेक्ट्स

विचार योग्य बातें

  • प्लेटफॉर्म-विशिष्ट डिज़ाइन दिशानिर्देशों का पालन करने की आवश्यकता है
  • ब्रांड सुसंगतता के लिए अतिरिक्त स्टाइलिंग की आवश्यकता हो सकती है
  • वीडियो रेंडरिंग के लिए बाहरी निर्भरता पर निर्भर करता है
  • कम क्षमता वाले उपकरणों पर प्रदर्शन में भिन्नता हो सकती है
  • प्रदान किए गए APIs के बाहर सीमित कस्टमाइजेशन

मूल 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 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।