buildAppBar method
- BuildContext context
Implementation
Widget buildAppBar(BuildContext context) {
if (customAppBar != null) {
return customAppBar!;
}
final SmoothPopupMenuButton<dynamic>? menu = actions(context);
return SliverPinnedHeader(
child: SmoothAppBar(
title: Text(title!),
leading: const SmoothBackButton(),
actions: menu != null ? <Widget>[menu] : null,
),
);
}