सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Flemme एक Flutter पैकेज है जिसका उद्देश्य उपयोगकर्ता इंटरफ़ेस विकास के लिए हल्के, प्रारंभिक सामग्री दृष्टिकोण के साथ विजेट निर्माण को सरल बनाना है। यह बॉइलरप्लेट कोड कम करके और सामान्य विजेट पैटर्न को सुव्यवस्थित करके उत्पादकता में सुधार करता है। सरलता के साथ बनाया गया, Flemme Android, iOS, Web, macOS, Windows और Linux सहित कई प्लेटफ़ॉर्म का समर्थन करता है, जो डेवलपर्स के लिए एक साफ और कुशल तरीके से उपयोगकर्ता इंटरफ़ेस बनाने के लिए आदर्श है। पैकेज मौजूदा Flutter प्रोजेक्ट में बिना किसी अड़चन के एकीकृत होता है और अधिक सहज कोडिंग अनुभव को बढ़ावा देता है।
उपयोग
त्वरित UI प्रोटोटाइपिंग
पुनरावृत्ति विजेट कोड कम करना
सामग्री डिज़ाइन कार्यान्वयन को सुव्यवस्थित करना
क्रॉस-प्लेटफ़ॉर्म यूआई विकास
जटिल विजेट ट्री को सरल बनाना
विकासकर्मी के उत्पादकता में सुधार करना
मुख्य विशेषताएँ
न्यूनतम बॉलरप्लेट
प्रारंभिक सामग्री डिज़ाइन सिद्धांत
क्रॉस-प्लेटफ़ॉर्म संगतता
स्पष्ट एपीआई
हल्का फुटप्रिंट
Flutter के साथ आसान एकीकरण
इनके लिए उपयुक्त
Flutter शुरुआती
दक्ष विकासकर्ता जो दक्षता की तलाश में हैं
त्वरित विकास पर केंद्रित टीमें
सुसंगत UI पैटर्न की आवश्यकता वाले प्रोजेक्ट
material design का व्यापक रूप से उपयोग करने वाले विकासकर्ता
कई प्लेटफॉर्म को लक्षित करने वाले ऐप्स
विचार योग्य बातें
उपलब्ध दस्तावेज़ सीमित हैं
नए नियमों के सीखने की आवश्यकता हो सकती है
सरल से मध्यम जटिलता वाले UI के लिए सबसे उपयुक्त
अत्यधिक कस्टमाइज़ेशन वाली विजेट आर्किटेक्चर के लिए उपयुक्त नहीं
लंबे समय तक समर्थन के लिए समुदाय के अपनाने पर निर्भर है
नए उपयोगकर्ताओं के लिए संभावित सीखने का ढलान
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
flemme
Flutter , Light , Early, Making, Material, Environnement
Simplify the writing of your widgets with Flemme
Installation
Add flemme as a dependency in your pubspec.yaml file.
dependencies:flemme:^0.1.0
Get Started
For use Flemme object by following steps :
import'package:flemme/flemme.dart';
Defaut code Flutter Example:
ScaffolddefaultFlutterScaffoldExample() {
returnScaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
constText(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headline4,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: constIcon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
Same with Flemme:
ScaffoldflemmeScaffoldExample() {
returnScaffold(
appBar: AppBar(
title: widget.title.toTextWidget(),
),
body: [
'You have pushed the button this many times:'.toTextWidget(),
'$_counter'.toTextWidget(style: Theme.of(context).textTheme.headline4),
].listToColumn(mainAxisAlignment: MainAxisAlignment.center).withCenter(),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: constIcon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
For all Widget
Create and custom Padding
// default value : EdgeInsets.all(8.0)Padding myPadding = Text('sample').withPadding();
// you can custome like : Padding myPadding = Text('sample').withPadding(padding: EdgeInsets.all(20.0));
//context is necessaryContainer().showHimself(context);
// custom background color, default transparent:Container().showHimself(context, bgColor:Colors.red);
For String
//ellips text with '...' defaut value lenght 140String textShort = 'text too long'.ellipse();
//custom lenght: String textShort = 'text too long'.ellipse(lenght:32);
//Convert quickly String to Text WidgetText myText = 'my sample'.toTextWidget();
// you can custom with every Text parameter
For DateTime
//convert DateTime to short string //String like 10 seconds ago, a minute ago, 7 hours ago, etc. if is before now//String like in 10 seconds , in a minute, in 7 hours, etc. if is after nowString time = DateTime().returnDateSmall();
For List
List<Widget> myList = ['sample'.toTextWidget(),'sample'.toTextWidget(),'sample'.toTextWidget(),'sample'.toTextWidget()];
//Convert list to RowRow myRow = myList.listToRow();
//Convert list to ColumnColumn myRow = myList.listToColumn();
Configure and use default padding
You can use and config default padding.
Call FlemmeConfig() for use and config. It's a single instance, you don't need to put it statically in your code, just call it where you need it. Preferably before your MaterialApp