contextx 0.1.1 copy "contextx: ^0.1.1" to clipboard
contextx: ^0.1.1 copied to clipboard

Extensions on BuildContext for Flutter. It lets you replace calls like Navigator.of(context) with context.navigator().

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add contextx

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

dependencies:
  contextx: ^0.1.1

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:contextx/cupertino.dart';
import 'package:contextx/material.dart';
import 'package:contextx/widgets.dart';
1
likes
30
pub points
0%
popularity

Publisher

verified publishertonicartos.nz

Extensions on BuildContext for Flutter. It lets you replace calls like Navigator.of(context) with context.navigator().

Homepage
Repository (GitHub)
View/report issues

License

MPL-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on contextx