GlassAppBar constructor

const GlassAppBar({
  1. Key? key,
  2. Widget? title,
  3. Widget? leading,
  4. List<Widget>? actions,
  5. bool centerTitle = true,
  6. Color backgroundColor = const Color(0x00000000),
  7. double toolbarHeight = 44.0,
  8. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8),
  9. LiquidGlassSettings? buttonSettings,
  10. GlassLargeTitleController? largeTitleController,
  11. PreferredSizeWidget? bottom,
})

Creates a glass app bar.

The bar itself is a simple layout container with a backgroundColor. Glass effects are rendered by individual child widgets (e.g. GlassButton) inside the bar — not by the bar surface.

Implementation

const GlassAppBar({
  super.key,
  this.title,
  this.leading,
  this.actions,
  this.centerTitle = true,
  // Whitelisted: Structural transparent default, not a Material colour.
  this.backgroundColor = const Color(0x00000000),
  this.toolbarHeight = 44.0,
  this.padding = const EdgeInsets.symmetric(horizontal: 8),
  this.buttonSettings,
  this.largeTitleController,
  this.bottom,
});