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

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

responsive_ui_kit

responsive_ui_kit आपको केंद्रित लेआउट, प्रतिक्रियाशील विभाजित दृश्य, स्क्रीन आकार एक्सटेंशन और स्वचालित टेक्स्ट स्केलिंग के साथ अनुकूल, स्केलेबल Flutter UI बनाने में मदद करता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
11
लाइक
0
Pub अंक
160

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

flutter pub add responsive_ui_kit

पैकेज अवलोकन

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

responsive_ui_kit एक Flutter पैकेज है जिसका उद्देश्य कई प्लेटफॉर्मों पर अनुकूल और स्केलेबल उपयोगकर्ता इंटरफेस बनाने में सरलता प्रदान करना है। यह केंद्रित लेआउट, प्रतिक्रियाशील विभाजित दृश्य, स्क्रीन आकार एक्सटेंशन और स्वचालित पाठ स्केलिंग प्रदान करता है, ताकि सभी आकार के उपकरणों पर समान यूआई व्यवहार सुनिश्चित किया जा सके। क्रॉस-प्लेटफॉर्म समर्थन के लिए डिज़ाइन किया गया, यह Android, iOS, Web, macOS, Windows और Linux के लिए विकास को सरल बनाता है। इस पैकेज के बिना जटिल कस्टम लॉजिक के बिना यूआई प्रतिक्रियाशीलता में सुधार किया जाता है, जिससे यह विभिन्न स्क्रीन आकारों पर एक चमकदार अनुभव प्रदान करने के लिए आदर्श है।

उपयोग

  • क्रॉस-प्लेटफॉर्म Flutter ऐप्स बनाना
  • अनुकूल डैशबोर्ड लेआउट बनाना
  • प्रतिक्रियाशील फॉर्म और कार्ड डिज़ाइन करना
  • स्प्लिट-स्क्रीन व्यू का कार्यान्वयन करना
  • उपकरणों के बीच स्थिर टाइपोग्राफी सुनिश्चित करना
  • स्केलेबल एडमिन पैनल विकसित करना

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

  • केंद्रित लेआउट उपकरण
  • प्रतिक्रियाशील विभाजित दृश्य घटक
  • स्क्रीन आकार विस्तार सहायक
  • उपकरण के आधार पर स्वचालित पाठ स्केलिंग
  • प्लेटफॉर्म के अनुकूलता
  • सरल API एकीकरण

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

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

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

  • जटिल लेआउट के लिए अतिरिक्त स्टाइलिंग की आवश्यकता हो सकती है
  • उन्नत UI पैटर्न के लिए सीमित कस्टमाइजेशन
  • फ्लटर के रेंडरिंग इंजन पर निर्भर करता है
  • अत्यधिक डायनामिक सामग्री के लिए अनअनुकूलित
  • संरचित, ग्रिड-आधारित डिजाइन के लिए सबसे उपयुक्त
  • प्रतिक्रियाशील डिज़ाइन सिद्धांतों को समझने की आवश्यकता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

🌐 Flutter Responsive UI

A clean and flexible way to build responsive layouts in Flutter across mobile, tablet, and desktop — with minimal boilerplate and powerful layout tools.


✨ Features

🧱 Simple, composable layout widgets
📐 Screen-based constraints (context.width, context.height)
🔡 Auto-scaling text with context.scaleText(...)
🔀 Dynamic Row/Column layout with ResponsiveSplitBody
🧩 ResponsiveCenteredBody for centered readable content
⚙️ Customizable breakpoints
🧠 Inherited context with ResponsiveLayoutProvider
🧪 Built-in example app


📦 Installation

Add to your pubspec.yaml:

dependencies:
  responsive_ui_kit : ^0.0.2

Import the package.

import 'package:flutter_responsive_ui/responsive_ui_kit.dart';

Video

https://github.com/user-attachments/assets/6e97004f-8694-4885-a852-5918e5615e8a

Usage

Wrap your app with ```ResponsiveLayoutProvider```` to access screen size in the widget tree:

void main() {
  runApp(
    const ResponsiveLayoutProvider(
      child: MaterialApp(
        home: MyHomePage(),
      ),
    ),
  );
}

🧱 Core Widgets

✅ ResponsiveCenteredBody

Center your content and constrain its width (default maxWidth = 640).

ResponsiveCenteredBody(
maxWidth: 720,
backgroundColor: Colors.grey[200],
child: Text("Centered content"),
)
🔀 ResponsiveSplitBody

Automatically switches between vertical and horizontal layout:

ResponsiveSplitBody(
primaryChild: Text("Primary"),
secondaryChild: Text("Secondary"),
gap: 16,
)

Force layout direction:

ResponsiveSplitBody(
  forceVerticalLayout: true, // Always vertical
)

Custom breakpoints: use maxMobileWidth property of BreakPoints

 ResponsiveSplitBody(
breakPoints: BreakPoints(maxMobileWidth: 700),
)

📐 Context Extensions

  • Use helpful extensions anywhere:
final screenWidth = context.width;
final screenHeight = context.height;

Global method for scalable sizes

    Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: [
            Text(
              'text widget scaling with screen size',
              style: TextStyle(
                color: Colors.amber,
                // getRespSize will scale your given size according to screen size and TextSizes is class where you can some standarad 
                //text sizes
                fontSize: getRespSize(context, size: TextSizes.titleMedium),
                // TextScalingValues parameter to control of scaling 

              ),
            ),
            Icon(Icons.home, size: getRespSize(context, size: 22))
          ],
        ),

🛠️ Configuration

Feature Usage
Max width ResponsiveCenteredBody(maxWidth: ...)
Custom breakpoints BreakPoints(maxMobileWidth: ...)
Gap between children gap: 20 in ResponsiveSplitBody
Flex ratios primaryFlex, secondaryFlex
Cross axis alignment crossAxisAlignment: CrossAxisAlignment.start

💬 Support

  • 🐛 Issues → https://github.com/kFasih132/flutter_responsive_ui
  • 📖 Docs → This README + example app
  • 🌟 Like it? Star it on pub.dev
Built with ❤️ by Fasih us Rehman for the Flutter community

श्रेणियाँ

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

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

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