diff --git a/lib/dashboard/json_viewer/view/json_viewer_page.dart b/lib/dashboard/json_viewer/view/json_viewer_page.dart index 2a6be26e7..0592ce10d 100644 --- a/lib/dashboard/json_viewer/view/json_viewer_page.dart +++ b/lib/dashboard/json_viewer/view/json_viewer_page.dart @@ -62,9 +62,10 @@ class JsonViewerView extends StatelessWidget { textSpans.add( TextSpan( text: boldText, - style: Theme.of(context).textTheme.bodyMedium!.copyWith( - fontWeight: FontWeight.w700, - ), + style: Theme.of(context) + .textTheme + .bodyMedium! + .copyWith(fontWeight: FontWeight.w700), ), ); currentIndex = match.end; @@ -72,7 +73,12 @@ class JsonViewerView extends StatelessWidget { if (currentIndex < data.length) { final remainingText = data.substring(currentIndex); - textSpans.add(TextSpan(text: remainingText)); + textSpans.add( + TextSpan( + text: remainingText, + style: Theme.of(context).textTheme.bodyMedium, + ), + ); } return BasePage(