refactor: Use own highlight rendering with working scrollbar and text selection
This commit is contained in:
parent
8e4c61f03b
commit
d8d0abf27c
5 changed files with 117 additions and 45 deletions
|
|
@ -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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue