Skip to content

Commit

Permalink
fix: Change the text color so that it is readable in light mode #2795
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Jul 18, 2024
1 parent 219bdac commit 7b09c9e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/dashboard/json_viewer/view/json_viewer_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,23 @@ 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;
}

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(
Expand Down

0 comments on commit 7b09c9e

Please sign in to comment.