appBar method
Returns the configured AppBar with optional tabs.
Implementation
AppBar appBar() {
return AppBar(
centerTitle: false,
leadingWidth: 50,
titleSpacing: 0,
toolbarHeight: list.isNotEmpty ? 100 : 65,
title:
Text(title, style: stylesWorkSans(fontSize: 16, color: Colors.white)),
bottom: list.isNotEmpty
? PreferredSize(
preferredSize: const Size.fromHeight(0),
child: ColoredBox(
color: const Color(0xFFDCDCDC),
child: _tabBar(),
),
)
: null,
);
}