YTitleWidget function

Widget YTitleWidget(
  1. String? title, {
  2. Color? navBarTitleColor,
  3. double fontSize = 18,
  4. FontWeight fontWeight = FontWeight.w700,
})

标题组件

Implementation

Widget YTitleWidget(String? title, {Color? navBarTitleColor, double fontSize = 18, FontWeight fontWeight = FontWeight.w700}) {
  return Expanded(
    child: Center(
      child: TextScroll(
        title ?? "",
        velocity: Velocity(pixelsPerSecond: Offset(10, 0)),
        style: TextStyle(color: navBarTitleColor ?? YConfig.navBarTitleColor, fontSize: fontSize, fontWeight: fontWeight),
      ),
    ),
  );
}