xcontext 1.0.0 copy "xcontext: ^1.0.0" to clipboard
xcontext: ^1.0.0 copied to clipboard

This simple package adds static extension methods and getters to the BuildContext context object from the widgets, material, and cupertino libraries.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add xcontext

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  xcontext: ^1.0.0

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:xcontext/xcontext.dart';
13
likes
90
points
21
downloads

Publisher

verified publisherdartside.dev

Weekly Downloads

This simple package adds static extension methods and getters to the BuildContext context object from the widgets, material, and cupertino libraries.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on xcontext