render_metrics 2.0.2 render_metrics: ^2.0.2 copied to clipboard
Library for getting widget metrics. Uses RenderObject to get the size and position of widgets relative to the screen window, as well as the difference between widgets.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add render_metrics
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
render_metrics: ^2.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:render_metrics/render_metrics.dart';