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