black_hole_flutter 0.2.0 copy "black_hole_flutter: ^0.2.0" to clipboard
black_hole_flutter: ^0.2.0 copied to clipboard

outdated

πŸ›  A package absorbing all Flutter utility functions, including extension functions and commonly used widgets

πŸ›  A package absorbing all Flutter utility functions, including extension functions and commonly used widgets.

BuildContext #

In Flutter you often see the pattern <Class>.of(context) (e.g. [Theme.of(context)][Theme.of]). This package adds extension getters on [BuildContext][BuildContext] for those classes so you can just say:

context.theme         // ≙ Theme.of(context)
context.textTheme     // ≙ Theme.of(context).textTheme
context.navigator     // ≙ Navigator.of(context)
context.rootNavigator // ≙ Navigator.of(this, rootNavigator: true)
context.scaffold      // ≙ Scaffold.of(context)
context.form          // ≙ Form.of(context)
// ... and many others!

Buttons #

Did you ever want to show a progress indicator inside a button? Or were annoyed to conditionally set a Button's onPressed to disable it? Fear no more — black_hole_flutter has got you covered!

Button demo

In FancyFab (a FloatingActionButton), FancyFlatButton, FancyOutlineButton & FancyRaisedButton, we introduce some new parameters:

Material colors #

Material Design specifies different opacities of white and black colors to use for text of different emphases on colored backgrounds. You can now use the highEmphasisOnColor, mediumEmphasisOnColor and disabledOnColor extension getters on Color to make your text legible!

There are also getters on ThemeData for contrast colors on the primary, accent, background, and error colors.

65
likes
0
pub points
81%
popularity

Publisher

verified publisherwanke.dev

πŸ›  A package absorbing all Flutter utility functions, including extension functions and commonly used widgets

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dartx, flutter, meta

More

Packages that depend on black_hole_flutter