own_appbar 0.0.2 copy "own_appbar: ^0.0.2" to clipboard
own_appbar: ^0.0.2 copied to clipboard

Responsive AppBar widget.

own_appbar #

A responsive AppBar widget.

About responsiveness: #

This package uses context property which is make appbar responsive. If you want to change responsive factor in order to make more better you can use given factor parameters as well.

  1. sizeFactor- In order to change height of appbar. It can be useful between sizeFactor >= 15 && sizeFactor <= 20. When sizeFactor changed also icon height will changed as well and it will be change appbar height according to MediaQuery.of(context).size.height / sizeFactor.
  2. iconFactor- In order to change action icons' height rather using default factor, this property maybe helpful.
  3. tailingIcon and leadingIcon properties are using IconData parameter (Ex: Icons.arrow_back_ios)
  4. leadingColor and tailingColor allows to change icons' color.
  5. actionClicked- this method will fired when one of action icon clicked by user. And it will show which of action icon clicked.
actionClicked: (actionName) {
               print(actionName);
},

actionName can be either leading_clicked or tailing_clicked.

By Default you can use: #

OwnAppBar(
          context: context,
          actionClicked: (actionName) {
            print(actionName);
          },
          logoID: "assets/logo.png",//path of assests image (can be null too)
          leadingIcon: Icons.arrow_back_ios, //can be null too
          tailingIcon: Icons.settings, //can be null too
        )

Full version #

 OwnAppBar(
          sizeFactor: 18,
          backgroundColor: Colors.black,
          key: Key("appBar"),
          iconFactor: 1.8,
          context: context,
          leadingColor: Colors.white,
          tailingColor: Colors.white,
          
          actionClicked: (actionName) {
            print(actionName);
          },
          logoID: "assets/logo.png",
          leadingIcon: Icons.arrow_back_ios,
          tailingIcon: Icons.settings,
),
1
likes
50
pub points
0%
popularity

Publisher

unverified uploader

Responsive AppBar widget.

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on own_appbar