EWAppBar.large constructor
EWAppBar.large({})
Implementation
factory EWAppBar.large({
Key? key,
String title = '',
Widget? leading,
bool isTitleCentered = false,
TextStyle? titleStyle,
List<Widget>? actions,
}) {
final appBar = AppBar(
bottom: PreferredSize(
preferredSize: const Size.fromHeight(160),
child: Column(
children: [
Align(
alignment: Alignment.topLeft,
child: Padding(
padding: const EdgeInsets.only(
left: 20.0,
),
child: Text(
title,
style: titleStyle,
),
),
),
const SizedBox(
height: 30,
)
],
),
),
leading: leading,
centerTitle: false,
actions: actions,
);
return EWAppBar(
key: key,
isTitleCentered: isTitleCentered,
appbarType: const Large(),
title: title,
leading: leading,
titleStyle: titleStyle,
actions: actions,
preferredSize: const Size.fromHeight(160),
child: appBar, // preferredSize for Medium
);
}