harbor_material 0.1.2
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:
HarborMaterialFrameand the README say that aSnackBarorMaterialBannershown throughScaffoldMessengerstops appearing once noScaffoldis on screen: it asserts in debug and shows nothing in release. Move a page's snack bars toshowSnackToastwhen the page moves toHarborMaterialFrame. Found by Rubric evaluating the swap. No code changes.
0.1.1 #
- Docs:
showSnackToastandHarborSnackToastsay the content spans the toast's width and aligns itself (give aTextits owntextAlign), 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: aHarborFrameon aMaterialin the theme'sscaffoldBackgroundColor, with aScrollNotificationObserver, and anappBar:that goes first intopas a solid bar. A one-for-one stand-in forScaffold.HarborMaterialBar.appBar: anAppBar(or anyPreferredSizeWidget) in a bar, with theAppBar's own surface run up behind the status bar byHarborMaterialAppBarSurface, resolved by theAppBar's rules in Material 2 and 3 and following it when content scrolls under.HarborMaterialDefaults.of:HarborDefaultsfromMaterialLocalizationsand the theme, forHarborRoot(defaults:)inMaterialApp.builder.HarborSnackToastandcontext.showSnackToast: a toast in aSnackBar's look, with an optional action.HarborMaterialSheet(and.draggable),HarborMaterialSheetSurfaceandHarborMaterialDragHandle: aHarborSheetin a modal bottom sheet's look, withshowDragHandle:,enableDrag:,backgroundColor:,elevation:andshape:.