WayFar
Search…
KitAppBar

Description

The application top bar that contains a title, main button and menu options.

Preview

Code

app_bar.dart
1
class KitAppBar extends StatelessWidget implements PreferredSizeWidget {
2
3
KitAppBar._({Key? key}) : super(key: key);
4
5
KitAppBar.simple(this._title, {this.transparent = false, this.actions, Key? key}): super(key: key);
6
7
KitAppBar.withUpButton(this._title, {this.transparent = false, this.actions, Key? key}): super(key: key) {
8
}
9
10
KitAppBar.withDrawerButton(this._title, {this.transparent = false, this.actions, Key? key}): super(key: key) {}
11
}
12
}
Copied!

API

Property
Description
Type
Default
title
The title in the app bar
String
-
transparent
Is the background of the app bar transparent
Boolean
False
actions
Widgets to show on the right of the app bar
List<Widget>
-
leading
The widget (one) to show on the left of the app bar (Back button or Drawer button)
Widget
Copy link