सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Material Text Fields एक कस्टमाइज़ेबल Flutter विजेट है जो फॉर्म में प्रभावी टेक्स्ट इनपुट के लिए डिज़ाइन किया गया है, मैटीरियल डिज़ाइन सिद्धांतों का पालन करता है। यह Android, iOS, वेब, macOS, Windows और Linux जैसे प्लेटफॉर्मों पर एक स्थिर और दृश्य रूप से आकर्षक इंटरफेस प्रदान करता है। विजेट विभिन्न इनपुट प्रकार, मान्यता और स्टाइलिंग विकल्पों का समर्थन करता है, जिससे यह अनुकूल और एक्सेसिबल फॉर्म बनाने के लिए आदर्श है। Dart के साथ बनाया गया, यह Flutter एप्लिकेशन में बिना किसी तकलीफ के एकीकृत होता है और devcrew.io द्वारा बनाए रखा जाता है।
उपयोग
फॉर्म इनपुट
उपयोगकर्ता पंजीकरण
खोज बार
संपर्क फॉर्म
लॉगिन स्क्रीन
डेटा संग्रहण
मुख्य विशेषताएँ
कस्टमाइज़ेबल दिखावट
क्रॉस-प्लेटफ़ॉर्म संगतता
निर्मित वैधता
Material Design के अनुपालन
आसान एकीकरण
प्रतिक्रियाशील लेआउट
इनके लिए उपयुक्त
फॉर्म-भारी एप्लिकेशन बनाने वाले डेवलपर्स
UI सामंजस्यता के प्रति ध्यान केंद्रित टीमें
बहु-प्लेटफॉर्म समर्थन की आवश्यकता वाले प्रोजेक्ट
प्राप्त करने वाले एप्स जिनमें सुलभ टेक्स्ट इनपुट हैं
त्वरित प्रोटोटाइपिंग
विचार योग्य बातें
Flutter SDK की आवश्यकता है
मैटेरियल डिज़ाइन अस्तित्व केवल सीमित
अतिरिक्त सत्यापन तर्क की आवश्यकता हो सकती है
बाह्य पैकेज रखरखाव पर निर्भर करता है
गैर-Material UI के लिए उपयुक्त नहीं
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Material Text Field
Material Text Field is a customizable widget for text input values in Dart. You can define the styling of the text field in your app's theme file or create multiple text fields with different styling. You can easily create text input fields with customizable styling and behaviors.
Installation
To use Material Text Field in your Dart project, add the following dependency to your "pubspec.yaml" file
You can create multiple text fields with different styling with providing "theme" attribute.
MaterialTextField(
keyboardType: TextInputType.text,
labelText: 'Name',
theme: FilledOrOutlinedTextTheme(
enabledColor: Colors.grey,
focusedColor: Colors.green,
fillColor: Colors.transparent,
// You can use all properties of FilledOrOutlinedTextTheme// to decor text field
),
prefixIcon: Image.asset('assets/images/ic_email.png'),
)
Advance Usage
With all possible params
MaterialTextField(
keyboardType: TextInputType.emailAddress,
hint: 'Email',
textInputAction: TextInputAction.next,
prefixIcon: Image.asset('assets/images/ic_lock.png'),
controller: _emailTextController,
validator: FormValidation.emailTextField,
onChanged: (text) {
print('First text field: $text');
},
suffixIcon: Image.asset('assets/images/ic_lock.png'),
enabled: false,
obscureText: true,
style: constTextStyle(fontSize: 16, color: Colors.black),
labelText: 'Password',
theme: FilledOrOutlinedTextTheme(
enabledColor: Colors.grey,
focusedColor: Colors.green,
fillColor: Colors.transparent,
) // you can use theme param to differ this text field from app level theming
)
Theming
To define the styling of the text field, you can either use the app-level theme file or specify the styling directly on the widget.
App-level theme
You can use MaterialTextFieldTheme class for text field theming. This Theme class which define theming for Filled/Outlined and underline text field theming. You can use this class for text field theming
Contributions, issues, and feature requests are welcome!
Show your Support
Give a star if this project helped you.
Bugs and feature requests
Have a bug or a feature request? Please first search for existing and closed issues.
If your problem or idea is not addressed yet, please open a new issue.