bar static method

Widget bar(
  1. String title, {
  2. Color barColor = UIData.primaryColor,
  3. Color titleColor = UIData.icBackColor,
  4. List<Widget>? actions,
})

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