EWAppBar.large constructor

EWAppBar.large({
  1. Key? key,
  2. String title = '',
  3. Widget? leading,
  4. bool isTitleCentered = false,
  5. TextStyle? titleStyle,
  6. List<Widget>? actions,
})

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
  );
}