This repository is a fork of the flutter_highlight project.
-
SelectionArea Support : Replacing
RichTexttoText.richto enable text selection. -
Header: Added a header that displays the programming language and supports custom widgets, with dynamic colors derived from
themeMap. -
Add lazyLanguages: Optimized the Mode class instantiation to reduce the number of instances created.
Original :
Fork :
dependencies:
flutter_highlight_fork:
git:
url: https://github.com/hengkysteen/flutter_highlight_fork.git
ref: v0.0.1import 'package:flutter_highlight_fork/flutter_highlight_fork.dart';
SelectionArea(
child: HighlightViewFork(
"void main()",
language: "dart",
),
),or copy complete example from example/main.dart and run it.


