refactor: Use own highlight rendering with working scrollbar and text selection

This commit is contained in:
Christian Kußowski 2025-11-19 09:47:41 +01:00
commit d8d0abf27c
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 117 additions and 45 deletions

View file

@ -1,8 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_highlighter/flutter_highlighter.dart';
import 'package:flutter_highlighter/themes/shades-of-purple.dart';
import 'package:matrix/matrix.dart';
import 'package:url_launcher/url_launcher.dart';
@ -40,10 +38,12 @@ class ErrorReporter {
height: 256,
width: 256,
child: SingleChildScrollView(
child: HighlightView(
child: Text(
text,
language: 'sh',
theme: shadesOfPurpleTheme,
style: const TextStyle(
fontSize: 14,
fontFamily: 'RobotoMono',
),
),
),
),