From 76827a1e88b133ee7949278534b6efc82e5d8503 Mon Sep 17 00:00:00 2001 From: Alejandro Torrado Date: Sat, 25 May 2024 16:46:46 -0300 Subject: [PATCH] Support for Flutter 3.22 --- lib/dynamic_widget/drop_cap_text.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dynamic_widget/drop_cap_text.dart b/lib/dynamic_widget/drop_cap_text.dart index 1f987d5..f8426e4 100644 --- a/lib/dynamic_widget/drop_cap_text.dart +++ b/lib/dynamic_widget/drop_cap_text.dart @@ -76,10 +76,10 @@ class DropCapText extends StatelessWidget { @override Widget build(BuildContext context) { TextStyle textStyle = TextStyle( - color: Theme.of(context).textTheme.bodyText2!.color, - fontSize: Theme.of(context).textTheme.bodyText2!.fontSize, - height: Theme.of(context).textTheme.bodyText2!.height, - fontFamily: Theme.of(context).textTheme.bodyText2!.fontFamily, + color: Theme.of(context).textTheme.bodyMedium!.color, + fontSize: Theme.of(context).textTheme.bodyMedium!.fontSize, + height: Theme.of(context).textTheme.bodyMedium!.height, + fontFamily: Theme.of(context).textTheme.bodyMedium!.fontFamily, ).merge(style); if (data == '')