Skip to main content

harbor_material 0.1.2 copy "harbor_material: ^0.1.2" to clipboard
harbor_material: ^0.1.2 copied to clipboard

Material for harbor: a Scaffold-like frame, an AppBar bar, SnackBar-look toasts, Material sheets, and harbor defaults from the Material theme.

0.1.2 #

  • Docs: HarborMaterialFrame and the README say that a SnackBar or MaterialBanner shown through ScaffoldMessenger stops appearing once no Scaffold is on screen: it asserts in debug and shows nothing in release. Move a page's snack bars to showSnackToast when the page moves to HarborMaterialFrame. Found by Rubric evaluating the swap. No code changes.

0.1.1 #

  • Docs: showSnackToast and HarborSnackToast say the content spans the toast's width and aligns itself (give a Text its own textAlign), from Flyby's adoption. No code changes.

0.1.0 #

The first release: the Material pieces apps wrote by hand around harbor, in a package of their own so harbor's core stays free of a design library. Needs harbor 1.0.1, whose AppBar status-bar fix the bar helper relies on.

  • HarborMaterialFrame: a HarborFrame on a Material in the theme's scaffoldBackgroundColor, with a ScrollNotificationObserver, and an appBar: that goes first in top as a solid bar. A one-for-one stand-in for Scaffold.
  • HarborMaterialBar.appBar: an AppBar (or any PreferredSizeWidget) in a bar, with the AppBar's own surface run up behind the status bar by HarborMaterialAppBarSurface, resolved by the AppBar's rules in Material 2 and 3 and following it when content scrolls under.
  • HarborMaterialDefaults.of: HarborDefaults from MaterialLocalizations and the theme, for HarborRoot(defaults:) in MaterialApp.builder.
  • HarborSnackToast and context.showSnackToast: a toast in a SnackBar's look, with an optional action.
  • HarborMaterialSheet (and .draggable), HarborMaterialSheetSurface and HarborMaterialDragHandle: a HarborSheet in a modal bottom sheet's look, with showDragHandle:, enableDrag:, backgroundColor:, elevation: and shape:.
0
likes
150
points
123
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Material for harbor: a Scaffold-like frame, an AppBar bar, SnackBar-look toasts, Material sheets, and harbor defaults from the Material theme.

Repository (GitHub)
View/report issues

Topics

#material #layout #safe-area #keyboard #insets

License

MIT (license)

Dependencies

flutter, harbor

More

Packages that depend on harbor_material