YTitleWidget function
Widget
YTitleWidget(
- String? title, {
- double fontSize = 18,
- 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),
),
),
);
}