सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर पैकेज जो विजेट्स के लिए डॉटेड लाइन डिकोरेशन प्रदान करता है, फ्लटर 3 और नल सेफ्टी के साथ संगत है। यह विकसकरों को एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स सहित कई प्लेटफॉर्मों पर अपने यूआई में स्टाइल्ड डॉटेड लाइन्स आसानी से जोड़ने की अनुमति देता है। इस पैकेज का उपयोग विजुअल सेपरेटर या कस्टमाइज़ेबल डॉश साइज़, स्पेसिंग और रंग के साथ डिकोरेटिव तत्वों को बनाने के लिए आदर्श है। इसे सरल API के साथ मौजूदा फ्लटर प्रोजेक्ट्स में बिना किसी दिक्कत के एकीकृत किया जा सकता है।
उपयोग
सूचियों में दृश्य विभाजक बनाना
कस्टम फॉर्म फील्ड सेपरेटर डिज़ाइन करना
लेआउट में सजावटी सीमा जोड़ना
डैश्ड लाइन्स के साथ UI में सुधार
प्रतिक्रियाशील डिज़ाइन तत्व बनाना
मुख्य विशेषताएँ
नल सुरक्षित और Flutter 3 के लिए संगत
कस्टमाइज़ किए गए डैश आकार और स्पेसिंग
क्रॉस-प्लेटफ़ॉर्म समर्थन
सरल API एकीकरण
विभिन्न लाइन अभिमुखीकरण का समर्थन करता है
इनके लिए उपयुक्त
सजावटी तत्वों की तलाश में UI डिजाइनर
क्रॉस-प्लेटफॉर्म ऐप्स बनाने वाले डेवलपर्स
डैश लाइन डेकोरेशन की आवश्यकता वाले प्रोजेक्ट्स
Flutter शुरुआती उपयोगकर्ता कस्टम विजेट्स का अन्वेषण कर रहे हैं
स्पष्ट, आधुनिक दृश्य अलगाव की आवश्यकता वाले ऐप
विचार योग्य बातें
केवल लाइन-स्टाइल सजावट तक सीमित
कोई एनिमेशन समर्थन नहीं
जटिल लेआउट में हस्तचालित समायोजन की आवश्यकता होती है
गतिशील लाइन उत्पादन के लिए उपयुक्त नहीं
रेंडरिंग के लिए मुख्य विजेट की सीमाओं पर निर्भर करता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
fdottedline
Use the easiest way to create a dotted line view 👀!
[FDottedLine] provides developers with the ability to create dashed lines. It also supports creating a dashed border for a [Widget]. Support for controlling the thickness, spacing, and corners of the dotted border.
Supports dotted lines in both horizontal and vertical directions
Support to create dashed shapes
Provide super easy way to add dotted border to Widget
Support creating flexible dotted corner effects
⚙️ Parameter & Interface
🔩 FDottedLine param
Param
Type
Necessary
Default
desc
color
Color
false
Colors.black
Dotted line color
height
double
false
null
height. If there is only [height] and no [width], you will get a dotted line in the vertical direction.If there are both [width] and [height], you will get a dotted border.
width
double
false
null
width. If there is only [width] and no [height], you will get a dotted line in the horizontal direction.If there are both [width] and [height], you will get a dotted border.
strokeWidth
double
false
1.0
The thickness of the dotted line
dottedLength
double
false
5.0
The length of each small segment in the dotted line
space
double
false
3.0
The distance between each segment in the dotted line
corner
FDottedLineCorner
false
null
The corners of the dotted border. See [FDottedLineCorner] for details
child
Widget
false
null
If [child] is set, [FDottedLine] will serve as the dotted border of [child].At this time, [width] and [height] will no longer be valid.
It is very simple to create a horizontal dotted line through FDottedLine.
The developer only needs to set the width parameter, but not the height parameter, which is all the developer needs to do for this.
If you want to control the thickness of the dotted line, set strokeWidth.
Through the dottedLength and space parameters, developers can freely control the length of each small segment in the dotted line and the distance between them.
In the past, it was very difficult to add a dotted border to a Widget.
Because the official did not provide us with a good solution. But now, FDottedLine makes things easier than ever. Developers only need to use their Widget as a child of FDottedLine.
This also means that through the nesting of FDottedLine, many super interesting views can be created.
💡 More Demo
See what FDottedLine can do!
When there is such a simple way to create a dotted line, developers can freely build more wonderful views.
More about the application of FDottedLine , look forward to the exploration of developers 🔆.
😃 How to use?
Add dependencies in the project pubspec.yaml file:
🌐 pub dependency
dependencies:fdottedline:^<versionnumber>
⚠️ Attention,please go to [pub] (https://pub.dev/packages/fdottedline) to get the latest version number of FDottedLine
🖥 Git dependency
dependencies:fdottedline:git:url:'git@github.com:Fliggy-Mobile/fdottedline.git'ref:'<Branch number or tag number>'
⚠️ Attention,please refer to [FDottedLine] (https://github.com/Fliggy-Mobile/fdottedline) official project for branch number or tag.
💡 License
Copyright2020-present FliggyAndroidTeam <alitrip_android@list.alibaba-inc.com>.
Licensed under the ApacheLicense, Version2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at following link.
http://www.apache.org/licenses/LICENSE-2.0Unlessrequired by applicable law or agreed to in writing, software
distributed under the Licenseis distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Licensefor the specific language governing permissions and
limitations under the License.