v1.1.0rect_getter
एक विजेट बच्चे के आयताकार जानकारी प्राप्त करने का एक सरल तरीका प्रदान करता है, जब रेंडर किया जाता है।
97लाइक 19.3 हज़ार30-दिन डाउनलोड160Pub अंक
AndroidiOSWebmacOSWindowsLinux
एक विजेट बच्चे के आयताकार जानकारी प्राप्त करने का एक सरल तरीका प्रदान करता है, जब रेंडर किया जाता है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A widget provide a simple way to get child's rectangle information after rendered.
To use this plugin, add rect_getter as a dependency in your pubspec.yaml file.
// Import package
import 'package:rect_getter/rect_getter.dart';
// Instantiate it
var globalKey = RectGetter.createGlobalKey();
var rectGetter = RectGetter(
key: globalKey,
child: _child,
);
or
var rectGetter = RectGetter.defaultKey(
child: _child,
);
// and add it to your layout .
// then you can get rect by
Rect rect = rectGetter.getRect();
or
Rect rect = RectGetter.getRectFromKey(globalKey);
For help getting started with Flutter, view our online documentation.
For help on editing package code, view the documentation.
निर्भरता सूची 2 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗