ghost_app_bar 0.2.2
ghost_app_bar: ^0.2.2 copied to clipboard
Transparent collapsing app bar with an iOS-style large title that fades as you scroll. Content dissolves into the status bar with no seam. Theme-aware, no dependencies.
Changelog #
0.2.2 #
- Trim the package description to 168 characters. pub.flutter-io.cn caps it at 180 and
was withholding all 10
pubspec.yamlpoints for the overrun.
0.2.1 #
- Shrink the published archive from 27 MB to a few KB. 0.2.0 accidentally shipped the example's generated Android/iOS/web scaffolding; it is now excluded. No code changes — upgrade from 0.2.0 purely for the size.
0.2.0 #
- Any widget can go in the bar. Added
largeTitleandcompactTitle, which take arbitrary widgets — a heading with a subtitle, an avatar row, a search field, tabs — instead of only a string. titleis now optional. Pass it for the plain-text case, or supply both custom widgets and omit it. Supplyingtitlealongside one custom widget fills in the other, so you can override just one side.- Theme-aware by default.
scrimColorand both title styles now fall back to the ambientThemeinstead of hardcoded white-on-dark-green, so the bar is readable in a stock light or dark app without passing any colors. - Documented every public API element.
Breaking #
scrimColoris nowColor?and defaults toThemeData.scaffoldBackgroundColor. If you relied on the old0xFF06140Adefault, pass it explicitly:scrimColor: const Color(0xFF06140A).- Default title colors follow
ColorScheme.onSurfacerather than always being white. PasslargeTitleStyle/compactTitleStyleto restore the old look.
0.1.2 #
- Add changelog entries for released versions (pub.flutter-io.cn convention fix).
0.1.1 #
- Add screenshots to the README.
- Add optional external
ScrollControllervia thecontrollerparameter.
0.1.0 #
- Initial release.
GhostAppBarScaffold: invisible app bar with gradient scrim, large title that fades out on scroll, and compact title that fades into the bar.GhostAppBarScaffold.childrenconvenience constructor for box widgets.