diff --git a/lib/src/helper.dart b/lib/src/helper.dart index 0a4b90d..d0b583b 100644 --- a/lib/src/helper.dart +++ b/lib/src/helper.dart @@ -38,7 +38,7 @@ class _CustomTextState extends State { } if (widget.context != null && widget.style != null) { var font = widget.style!.fontSize == null - ? Theme.of(context).textTheme.bodyText1!.fontSize! + ? Theme.of(context).textTheme.bodyLarge!.fontSize! : widget.style!.fontSize!; style = widget.style!.copyWith( fontSize: diff --git a/lib/src/widget.dart b/lib/src/widget.dart index 9bf554b..d5e3a45 100644 --- a/lib/src/widget.dart +++ b/lib/src/widget.dart @@ -193,13 +193,13 @@ class _EmptyListWidgetState extends State Theme.of(context) .typography .dense - .headline5! + .headlineSmall! .copyWith(color: Color(0xff9da9c7)); _subtitleTextStyle = widget.subtitleTextStyle ?? Theme.of(context) .typography .dense - .bodyText1! + .bodyLarge! .copyWith(color: Color(0xffabb8d6)); _packageImage = widget.packageImage;