flutter: Change App name font size to 48

This commit is contained in:
Calcitem 2021-02-14 20:51:20 +08:00
parent d9da832bdb
commit 5903de20ca
1 changed files with 6 additions and 5 deletions

View File

@ -87,7 +87,7 @@ class _MainMenuState extends State<MainMenu> with TickerProviderStateMixin {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// //
final nameShadow = Shadow( final appNameShadow = Shadow(
color: Color.fromARGB(0x99, 66, 0, 0), color: Color.fromARGB(0x99, 66, 0, 0),
offset: Offset(0, shadowAnimation.value / 2), offset: Offset(0, shadowAnimation.value / 2),
blurRadius: shadowAnimation.value, blurRadius: shadowAnimation.value,
@ -98,11 +98,12 @@ class _MainMenuState extends State<MainMenu> with TickerProviderStateMixin {
blurRadius: shadowAnimation.value / 3, blurRadius: shadowAnimation.value / 3,
); );
final nameStyle = TextStyle( final appNameStyle = TextStyle(
fontSize: 64, fontSize: 48,
color: Colors.black, color: Colors.black,
shadows: [nameShadow], shadows: [appNameShadow],
); );
final menuItemStyle = TextStyle( final menuItemStyle = TextStyle(
fontSize: 28, fontSize: 28,
color: UIColors.primaryColor, color: UIColors.primaryColor,
@ -116,7 +117,7 @@ class _MainMenuState extends State<MainMenu> with TickerProviderStateMixin {
Transform.scale( Transform.scale(
scale: inAnimation.value, scale: inAnimation.value,
child: Text(S.of(context).appName, child: Text(S.of(context).appName,
style: nameStyle, textAlign: TextAlign.center), style: appNameStyle, textAlign: TextAlign.center),
), ),
Expanded(child: SizedBox()), Expanded(child: SizedBox()),
FlatButton( FlatButton(