adaptive_appbar 1.0.2

SDKflutter
Platformandroidioswindowslinuxmacosweb

A model for an adaptive AppBar. Created to easily make an app bar that changes size for both mobile and web development.

A model for an adaptive AppBar. Created to easily make an app bar that changes size for both mobile and web development.

adaptive_appbar

🎯 Features

  • Responsive.
  • Easy to implement.
  • Fully customizable!

📦 Implementation

AdaptiveAppBar(
    context,
    title: "Awesome AppBar",
    onBackPressed: () {},
);

🎨 Customization

AdaptiveAppBar(
    context,
    title: "Awesome AppBar",
    onBackPressed: () {},

    // Title for back button (Shows only on big screens)
    backButtonTitle: "Discard",
    // Custom background color
    backgroundColor: Colors.white,
    // Custom foreground color
    foregroundColor: Colors.blue,
    // Custom elevation
    elevation: 1,
    // Custom widget at the end of the AppBar
    widget: const Icon(Icons.access_alarm),
);

🧱 Parameters

NameDescriptionData typeDefault value
titleAppBar's titleString-
backButtonTitleTitle for back button (Shows only on big screens)String"Cancel"
onBackPressedHandle back button pressFunction()-
backgroundColorCustom background colorColorcolorScheme.primaryContainer
foregroundColorCustom foreground colorColorcolorScheme.onSecondaryContainer -OR- Colors.black
elevationCustom elevationdouble0
widgetCustom widget at the end of the AppBarWidget-