v0.0.4story_painter
इस पैकेज में Instagram के स्टोरी एडिटर में ड्राइंग का अनुभव प्रदान किया जाता है।
26लाइक 4030-दिन डाउनलोड50Pub अंक
प्लेटफ़ॉर्म डेटा नहीं
Flutter के लिए ड्राइंग अनुभव!
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
This package provides drawing experince like in story editor of Instagram.
story_painter is a modified version of the hand_signature.
Initialize the controller
StoryPainterControl painterControl = StoryPainterControl(
type: PainterDrawType.shape,
threshold: 3.0,
smoothRatio: 0.65,
velocityRange: 2.0,
color: Colors.white,
width: 8,
onDrawStart: () {},
onDrawEnd: () {},
);
Build StoryPainter with controller
StoryPainter(control: painterControl)
Change brush specs while drawing
painterControl.setColor(Colors.red);
painterControl.setWidth(24.0);
Export the image
ui.Image image = await painterControl.toImage(pixelRatio: 3.0);
Display or use the output
// Convert the data
ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);
Uint8List pngBytes = byteData.buffer.asUint8List();
// Display with memory image
Image.memory(pngBytes)
निर्भरता सूची 3 आइटम
{"sdk":"flutter"}^1.1.6{"sdk":"flutter"}उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗