widget_finder 0.1.0 copy "widget_finder: ^0.1.0" to clipboard
widget_finder: ^0.1.0 copied to clipboard

outdated

Easily find position and size of widget.

widget_finder #

Easily find position and size of widget.

Getting Started #

Add kpostal to your pubspec.yaml file:

dependencies:
  widget_finder:

Example #

import 'package:widget_finder/widget_finder.dart';

// Create GlobalKey
final key = GlobalKey();

// Create Widget using above GlobalKey
Container(
    key: key,
    child ...
),

// Find!
Offset topLeftOffset = WidgetFinder.of(key).topLeft; // position of topLeft point
Offset centerOffset = WidgetFinder.of(key).center; // position of center point
Size size = WidgetFinder.of(key).size; // size of widget
8
likes
0
points
7
downloads

Publisher

verified publishertykan.dev

Weekly Downloads

Easily find position and size of widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on widget_finder