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

responsive कवर
पैकेज विवरणv0.3.11+11

responsive

मोबाइल, डेस्कटॉप और वेब के लिए फ्लटर एप्लिकेशन के लिए रिस्पॉन्सिव UI बनाने का आसान तरीका प्रदान करें, प्रत्येक स्क्रीन आकार और डिवाइस ओरिएंटेशन के लिए अलग-अलग विजेट आकार की अनुमति दें।

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

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

flutter pub add responsive

पैकेज अवलोकन

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

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

उपयोग

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

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

  • स्वचालित स्क्रीन आकार निर्धारण
  • दिशा-संवेदनशील विजेट आकार
  • प्रतिक्रियाशील विजेट्स के लिए सरल API
  • सभी प्रमुख Flutter प्लेटफॉर्म का समर्थन
  • सामान्य उपकरणों के लिए बिल्ट-इन ब्रेकपॉइंट्स

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

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

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

  • कई डिवाइस प्रकारों पर परीक्षण की आवश्यकता हो सकती है
  • अत्यधिक नेस्टेड रिस्पॉन्सिव विजेट्स का प्रदर्शन प्रभाव
  • पूर्वनिर्धारित ब्रेकपॉइंट्स के आगे सीमित कस्टमाइजेशन

मूल README

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

responsive

build status Pub support

Provide a easy way to make responsive UI for Flutter Applications in mobile, desktop and web, allow different widget size for each screen size and device orientation..

Made by Marvin Quevedo and [Víctor Guardiola](mailto:victor.guardiola@gmail.com) of FlutterEs Community.

Este paquete ha sido creado por la comunidad de Flutter en Español, si deseas ser parte de nosotros, puedes visitar cualquiera de estos links:

Facebook

Slack

Twitter

www.flutter-es.io

Telegram

portrait view

landscape view

Video example

Add dependency
dependencies:
  responsive: 0.2.3

Usage

You have two ways of use it:

You can use the ReponsiveRow widget and the FlexResponsive widget to make the layout

or

you can use the static method Responsive.calcColumns to assign the correct number of columns to a widget like a GridView.

Easy to use

import 'package:flutter/material.dart';
import 'package:responsive/flex_widget.dart';
import 'package:responsive/responsive_row.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Responsive Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(),
        body: ListView(
          children: <Widget>[
            ResponsiveRow(
              columnsCount: 12,
              crossAxisAlignment: WrapCrossAlignment.center,
              children: <Widget>[
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.amber,
                  ),
                  xs: 4,
                  xsOffset: 2,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  xsLandOffset: 0,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.red,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.indigo,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.lime,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.teal,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.green,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.deepOrange,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.amber,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.grey,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.black,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.brown,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
                FlexWidget(
                  child: Container(
                    height: 100,
                    color: Colors.cyan,
                  ),
                  xs: 6,
                  sm: 3,
                  md: 2,
                  lg: 1,
                  xsLand: 4,
                  smLand: 2,
                  mdLand: 1,
                  lgLand: 1,
                ),
              ],
            )
          ],
        ),
      ),
    );
  }
}

श्रेणियाँ

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

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

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