From 6b6a5337006d6f76a5a15ccbb3627be942a68936 Mon Sep 17 00:00:00 2001 From: yfm <928289877@qq.com> Date: Tue, 28 May 2024 09:42:55 +0800 Subject: [PATCH] Styling getters implementation fit 3.22.1 --- lib/http_log_list_widget.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/http_log_list_widget.dart b/lib/http_log_list_widget.dart index def0ce6..6673931 100644 --- a/lib/http_log_list_widget.dart +++ b/lib/http_log_list_widget.dart @@ -44,8 +44,8 @@ class _HttpLogListWidgetState extends State { child: Align( child: Text( debugBtnIsShow() ? 'close overlay' : 'open overlay', - style: theme.textTheme.caption! - .copyWith(fontWeight: FontWeight.bold), + style: theme.textTheme.headlineLarge + ?.copyWith(fontWeight: FontWeight.bold), ), ), ), @@ -60,8 +60,8 @@ class _HttpLogListWidgetState extends State { child: Align( child: Text( 'clear', - style: theme.textTheme.caption! - .copyWith(fontWeight: FontWeight.bold), + style: theme.textTheme.headlineLarge + ?.copyWith(fontWeight: FontWeight.bold), ), ), ), @@ -93,7 +93,7 @@ class _HttpLogListWidgetState extends State { Color? textColor = LogPoolManager.getInstance().isError(item) ? Colors.red - : Theme.of(context).textTheme.bodyText1!.color; + : Theme.of(context).textTheme.bodyLarge!.color; return Card( margin: EdgeInsets.all(8), elevation: 6,