code_highlight_view 0.1.1 code_highlight_view: ^0.1.1 copied to clipboard
Syntax highlighting widget for Flutter. This is an update/fork of package:highlight_view with selectable text and perf improvements.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add code_highlight_view
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
code_highlight_view: ^0.1.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:code_highlight_view/code_highlight_view.dart';