v1.1.0rect_getter
A widget provide a simple way to get child`s rectangle information after rendered.
97Likes 19.3K30-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
A widget provide a simple way to get child`s rectangle information after rendered.
English project snapshot. Visit GitHub for the latest content.
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.
Dependency list 2 items
{"sdk":"flutter"}{"sdk":"flutter"}Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗