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

पैकेज विवरणv1.0.6+4

the_responsive_builder

यह Flutter पैकेज एक समर्थन के लिए उपयोगी उपकरणों का सेट प्रदान करता है जो फ्लटर एप्लिकेशन के लिए अनुकूल बनाने में मदद करता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
16
लाइक
16
Pub अंक
140

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

flutter pub add the_responsive_builder

पैकेज अवलोकन

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

Responsive Builder एक Flutter पैकेज है जिसका उद्देश्य कई प्लेटफॉर्मों पर रिस्पॉन्सिव उपयोगकर्ता इंटरफेस बनाने में सुविधा प्रदान करना है। यह उपयोगी कार्य और विजेट प्रदान करता है जो स्क्रीन के आकार, डिवाइस प्रकार और ओरिएंटेशन के आधार पर लेआउट और स्टाइलिंग को अनुकूलित करते हैं। ब्रेकपॉइंट्स और लचीले नियमों का उपयोग करके, डेवलपर्स ऐसे UI बना सकते हैं जो विभिन्न डिवाइस के लिए स्वचालित रूप से अनुकूलित होते हैं बिना दोहराए शर्तों के लिखे जाने के। यह Android, iOS, Web, macOS, Windows और Linux के लिए लक्षित ऐप्स के लिए आदर्श है, जो रिस्पॉन्सिव डिज़ाइन के कार्यप्रवाह को सरल बनाता है।

उपयोग

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

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

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

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

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

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

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

मूल README

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

Pub

The Responsive Builder

This package provides a set of utilities to aid in building responsive Flutter applications that adapt to different screen sizes and orientations.

1. Setup

Firstly, add package to pubspec.yaml.

Then, wrap your main MaterialApp widget with the TheResponsiveBuilder

void main() => runApp(
  TheResponsiveBuilder(
    builder: (context, orientation, screenType) {
      return MaterialApp(
        //... your other MaterialApp properties
      );
    },
  ),
);
2. Usage of extensions

With the utilities set up, you can easily use the extensions provided:

- Height & Width
// This will set the height to 20% of the screen height
Container(height: 20.h, ...);

// This will set the width to 50% of the screen width
Container(width: 50.w, ...);
- Density Pixels & Scaled Pixels
// This uses a logarithmic formula to scale UI elements based on screen size and pixel density.
TextStyle(fontSize: 16.dp, ...);

// This scales the text size based on the user's font size settings.
TextStyle(fontSize: 16.sp, ...);
- Screen Type & Orientation
if (context.screenType == ScreenType.mobile) {
  // Build UI for mobile
} else {
  // Build UI for tablet
}

if (context.orientation == Orientation.portrait) {
  // Build UI for portrait mode
} else {
  // Build UI for landscape mode
}
- Lock & Unlock Screen Orientation
// Lock screen orientation to Portrait mode
context.lockToPortrait();

// Lock screen orientation to Landscape mode
context.lockToLandscape();

// Unlock screen orientation to automatic mode
context.unlockOrientation();

श्रेणियाँ

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

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

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