सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर पैकेज जो मैटेरियल डिज़ाइन लिस्टटाइल को कस्टमाइज़ेबल, नेटिव-आधारित स्विच के साथ बिना किसी दिक्कत के एकीकृत करता है, जो मैटेरियल और कूपर्टी शैली दोनों के लिए उपलब्ध है। यह एक साफ और आकर्षक समाधान प्रदान करता है जो एक सुसंगत क्रॉस-प्लेटफॉर्म दिखावट के साथ टॉगल करने योग्य सूची आइटम बनाने के लिए उपयोगी है। विजेट को हल्के, आसानी से उपयोग करने वाले घटक के रूप में डिज़ाइन किया गया है जो उपयोगकर्ता अनुभव को बढ़ावा देता है जो कार्यक्षमता और आकर्षक दिखावट को जोड़ता है। टॉगल का अक्सर उपयोग किए जाने वाले सेटिंग या प्राथमिकता स्क्रीन के लिए आदर्श है।
उपयोग
सेटिंग यूआई
प्राथमिकता पैनल
टॉगल करने योग्य सूची आइटम
उपयोगकर्ता प्रोफ़ाइल कॉन्फ़िगरेशन
फॉर्म कंट्रोल्स
मुख्य विशेषताएँ
कस्टमाइज़ किए गए मैटेरियल और कूपर्टी चेकबॉक्स
सहज ListTile एकीकरण
क्रॉस-प्लेटफॉर्म सुसंगतता
हल्का और कार्यक्षम
लागू करने में आसान
स्टाइलिंग लचीलापन
इनके लिए उपयुक्त
सेटिंग स्क्रीन बनाने वाले डेवलपर्स
मूल जैसे टॉगल की तलाश करने वाले डिज़ाइनर
क्रॉस-प्लेटफॉर्म स्विच कंपोनेंट्स वाले ऐप्स
UI पॉलिश पर जोर देने वाले प्रोजेक्ट
विचार योग्य बातें
Flutter 3.0+ की आवश्यकता है
स्विच-विशिष्ट कार्यक्षमता तक सीमित
मानक ट्रांजिशन के अलावा कोई आंतरिक एनीमेशन नहीं है
जटिल लेआउट के लिए अतिरिक्त स्टाइलिंग की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
ListTileSwitch
ListTileSwitch is a simple widget that combines ListTile with a switch. Offering 3 types of switch widgets:
Switch: Material Switch from Material library on Flutter SDK.
CupertinoSwitch: CupertinoSwitch from Cupertino library on Flutter SDK.
A custom switch.
Tested on Android and Web but not iOS. Theoritacially it should work on iOS devices too, since this package contains nothing but pure Dart and Flutter components.
Installation
Add dependency for package on your pubspec.yaml:
dependencies:
list_tile_switch: <latest>
Usage
Use it as a regular ListTile widget with a bonus: the trailing widget is a switch. Covering all aspects of the ListTile and adding more with a custom switch.
Parameter
Definition
double switchScale
Adjusting the scale of the switch widget.
Color switchActiveColor
The color of the switch when the switch is active.
bool toggleSelectedOnValueChange
Deciding whether to color the ListTile when switch value is true, the selected color will be the switchActiveColor.