rect_getter 0.0.1

outdated

A widget provide a simple way to get child`s rectangle information after rendered.

rect_getter #

A widget provide a simple way to get child's rectangle information after rendered.

Usage #

To use this plugin, add rect_getter as a dependency in your pubspec.yaml file.

Example #

// Import package
import 'package:rect_getter/rect_getter.dart';

// Instantiate it

var globalKey = RectGetter.createGlobalKey();
var rectGetter = new RectGetter(
    key: globalKey,
    child: _child,
);

or

var rectGetter = new 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);


Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

23
likes
0
pub points
94%
popularity

Publisher

debuggerx.com

A widget provide a simple way to get child`s rectangle information after rendered.

Repository (GitHub)
View/report issues

More

Packages that depend on rect_getter