bar static method
Implementation
static Widget bar(String title,
{Color barColor = UIData.primaryColor,
Color titleColor = UIData.icBackColor,
List<Widget>? actions}) {
return PreferredSize(
preferredSize: Size.fromHeight(MxBaseUserInfo.instance.appBarHeight),
child: AppBar(
centerTitle: true,
elevation: 0.5,
backgroundColor: barColor,
surfaceTintColor: Colors.transparent,
shadowColor: Colors.transparent,
title: Text(
title,
style: TextStyle(
fontSize: 20.fsp,
fontWeight: FontWeight.w400,
color: titleColor),
),
actions: actions,
));
}