createUI method
Implementation
PreferredSizeWidget createUI() => AppBar(
shadowColor: shadowColor ?? ThemeData().shadowColor,
elevation: elevation,
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: LabelCustom(MultiLanguage.get(title),
align: TextAlign.center, size: 50.sp)),
lblButton.isNotEmpty ?
OutlinedButton(
style: OutlinedButton.styleFrom(
side: const BorderSide(
color: Colors.transparent,
),
backgroundColor: StyleCustom.primaryColor,
textStyle: const TextStyle(color: Colors.transparent)
),
onPressed: () => onPressed!(),
child: LabelCustom(MultiLanguage.get(lblButton),
size: 50.sp, weight: FontWeight.normal)):
SizedBox(width: 96.sp)
]
)
);