Skip to content

hengkysteen/flutter_highlight_fork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_highlight_fork

This repository is a fork of the flutter_highlight project.

Deskripsi Gambar

Fork changes

  • SelectionArea Support : Replacing RichText to Text.rich to 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 :

Deskripsi Gambar

Fork :

Deskripsi Gambar

Getting Started

Add dependency

dependencies:
  flutter_highlight_fork:
    git:
      url: https://github.com/hengkysteen/flutter_highlight_fork.git
      ref: v0.0.1

Usage

import '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.

References

About

Flutter Code Syntax highlighting

Topics

Resources

License

Stars

Watchers

Forks

Languages