सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Screentasia एक Flutter पैकेज है जिसका उद्देश्य सभी स्क्रीन आकारों और प्लेटफॉर्मों पर अनुकूल, प्रतिक्रियाशील UI के निर्माण को सरल बनाना है। यह विस्तारशील लेआउट, डायनामिक टाइपोग्राफी और स्थिर अंतराल के लिए उपकरण प्रदान करता है, जिससे डिज़ाइन Android, iOS, Web, macOS, Windows और Linux पर चमकदार दिखते हैं। विभिन्न स्क्रीन घनत्व और दिशाओं के साथ काम करने के लिए अंतर्निहित उपकरण हैं, जो बॉयलरप्लेट कोड को कम करते हैं और प्रतिक्रियाशील विकास को सुगम बनाते हैं। पिक्सेल-पर-पिक्सेल अनुकूलता की आवश्यकता वाले ऐप्स के लिए आदर्श है जब तक रखरखाव में कोई कमी न हो।
उपयोग
क्रॉस-प्लेटफॉर्म एप्प डेवलपमेंट
प्रतिक्रियाशील लेआउट डिज़ाइन
अनुकूल टाइपोग्राफी स्केलिंग
उपकरण के आकारों के माध्यम से सुसंगत UI
डायनामिक स्पेसिंग समायोजन
मल्टी-स्क्रीन अनुकूलन
मुख्य विशेषताएँ
एम्बेडेड रिस्पॉन्सिव उपयोगिताएं
प्लेटफॉर्म-अनुकूल डिज़ाइन समर्थन
स्क्रीन के लिए स्वचालित स्केलिंग
लचीले लेआउट घटक
दिशा-जागरूक रेंडरिंग
टाइपोग्राफी और स्पेसिंग की अनुकूलता
इनके लिए उपयुक्त
बहु-प्लेटफॉर्म एप्लिकेशन बनाने वाले डेवलपर्स
UI सुसंगतता को प्राथमिकता देने वाली टीमें
विविध उपकरण आवश्यकताओं वाले प्रोजेक्ट
डिज़ाइनर डेवलपर्स के साथ सहयोग कर रहे हैं
कई स्क्रीन आकारों के लिए लक्षित ऐप्स
विचार योग्य बातें
प्रतिक्रियाशील डिज़ाइन सिद्धांतों के समझ की आवश्यकता है
सरल ऐप्स के लिए थोड़ा अतिरिक्त ओवरहेड जोड़ सकता है
जटिल यूआई के लिए सबसे उपयुक्त
मौजूदा लेआउट संरचना के साथ एकीकरण की आवश्यकता है
कुछ बिल्ट-इन विजेट्स में सीमित कस्टमाइज़ेशन
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Screentasia
Level Up Your UI, Enjoyable & Simple
#1 Best Screens UI Package
✨ Give a star for the Repo ✨
Screentasia
A Flutter package that helps you create beautifully adaptive designs for all screens with a wealth of features.
Features
🚀 Adaptive From: To adaptive sizes from different screens like Mobile, Tablet, Desktop
⚡️ Adaptive Percentage: To customize Adaptive percentage for different screens sizes in percentage for the hole app or for a specific widget
➗️ Percentage Sizes: Now you can customize width and height as percentages from screen
❤️ As you want: You can disable Adaptive for specific screens just passing 0
🏋♂️️ No Media Query: No need for Media Query no more
Usage
Add dependency
Please check the latest version before installation.
If there is any problem with the new version, please use the previous version
Used to adapt sizes from chosen screen ex: if 500 width on a desktop is equal to 50% of the screen width, will be equal to 50% to all screens,also you can use custom screen with customScreen method
In this example we will use only width for all situations to use adaptive values,Of course we can apply that concept in (Height,Font,Padding,etc)
Example using Values
We can create adaptive value for (width,height,font,etc) based on value in specific device for example (Mobile,Tablet,Desktop) or specific device dimension ( width,height )
Screentasia().setWidth(540) (dart sdk>=2.6 ) another way (540.w) //Adapted to screen width
Screentasia().setHeight(200) (dart sdk>=2.6 ) another way (200.h) //Adapted to screen height, under normal circumstances, the height still uses x.w
Screentasia().radius(200) (dart sdk>=2.6 ) another way (200.r) //Adapt according to the smaller of width or height
Screentasia().setSp(24) (dart sdk>=2.6 ) another way (24.sp) //Adapter font
Screentasia().setPercentage(MediaQuery.sizeOf(context).width,50) (dart sdk>=2.6 : 50.wp) //Device width in Percentage, You can use Height just replace MediaQuery.sizeOf(context).width with MediaQuery.sizeOf(context).height
EdgeInsets.all(10).w //EdgeInsets.all(10.w)
EdgeInsets.only(left:8,right:8).r // EdgeInsets.only(left:8.r,right:8.r).
Radius.circular(16).w //Radius.circular(16.w)
BorderRadius.all(Radius.circular(16)).w
ap(tablet:50) //adaptive percentage, tablet 50 means that adaptive percentage 50% only on tablet screens, the default is 100% for all screens