flutter_syntax_view 0.1.0 copy "flutter_syntax_view: ^0.1.0" to clipboard
flutter_syntax_view: ^0.1.0 copied to clipboard

outdated

A SyntaxView Widget which highlights code text according to the programming language syntax.

flutter_syntax_view #

A SyntaxView Widget which highlights code text according to the programming language syntax.

Usage #

// Load code text from assets/your_code.txt
// Use DefaultAssetBundle. Recommended ( it allows switching asset bundles at runtime ).

String code = "";
DefaultAssetBundle.of(context).loadString('assets/your_code.txt').then((codeText) {
  setState(() {
    code = codeText;
  });
});
SyntaxView(
        code: code,
        syntax: Syntax.DART,
        syntaxTheme: SyntaxTheme.dracula(),
        withZoom: true,
       );

Supported Syntax #

  • ✅ Dart
  • More will be added.

Themes #

TODO #

  • ❌ Add More Syntax Support.
  • ❌ Add More Themes.

Installing #

Package

Features and bugs #

If you face any problems feel free to open an issue at the issue tracker. If you feel the library is missing a feature, please raise a ticket on Github. Pull request are also welcome.

77
likes
0
pub points
90%
popularity

Publisher

unverified uploader

A SyntaxView Widget which highlights code text according to the programming language syntax.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, string_scanner

More

Packages that depend on flutter_syntax_view