A Dart wrapper for the Resize Observer API
// bool if the browser supports the Resize Observer API ResizeObserver.supported // Start observing an element for resizes ResizeObserver.observe(Element element, ResizeObserverCallback callback); // Stop observing resizes to [element] ResizeObserver.unobserve(Element element);
Add this to your package's pubspec.yaml file:
dependencies: resize_observer: "^1.0.0"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.0||Aug 8, 2017|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: web
Changelog entries help clients to follow the progress in your code.
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Maintain an example.
None of the files in your
example/directory matches a known example patterns. Common file name patterns include:
example.dartor you could also use
Fix analysis and formatting issues.
Analysis or formatting checks reported 1 hint.
|Dart SDK||>=1.22.1 <2.0.0|