migrate Flutter 3.7.0

This commit is contained in:
lollipopkit
2023-01-26 14:37:52 +08:00
parent 9c8f9c3b9f
commit 0ecc321115
15 changed files with 339 additions and 228 deletions

View File

@@ -164,7 +164,7 @@ class _ConvertPageState extends State<ConvertPage>
title: Text(
e,
style: TextStyle(
color: _theme.textTheme.bodyText2?.color?.withAlpha(177),
color: _theme.textTheme.bodyMedium?.color?.withAlpha(177),
),
),
trailing: _buildRadio(typeOption.indexOf(e)),

View File

@@ -124,7 +124,7 @@ class _ServerPageState extends State<ServerPage>
final hasError =
cs == ServerConnectionState.failed && ss.failedInfo != null;
final style = TextStyle(
color: _theme.textTheme.bodyText1!.color!.withAlpha(100), fontSize: 11);
color: _theme.textTheme.bodyLarge!.color!.withAlpha(100), fontSize: 11);
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -279,7 +279,7 @@ class _ServerPageState extends State<ServerPage>
Widget _buildIOData(String up, String down) {
final statusTextStyle = TextStyle(
fontSize: 9, color: _theme.textTheme.bodyText1!.color!.withAlpha(177));
fontSize: 9, color: _theme.textTheme.bodyLarge!.color!.withAlpha(177));
return SizedBox(
width: _media.size.width * 0.2,
child: Column(

View File

@@ -212,7 +212,7 @@ class _SettingPageState extends State<SettingPage> {
tabTitleName(context, tabs.indexOf(e)),
style: TextStyle(
fontSize: 14,
color: _theme.textTheme.bodyText2!.color!.withAlpha(177)),
color: _theme.textTheme.bodyMedium!.color!.withAlpha(177)),
),
trailing: _buildRadio(tabs.indexOf(e)),
),