flutter_syntax_view 3.2.2 flutter_syntax_view: ^3.2.2 copied to clipboard
Flutter Syntax Highlighter
flutter_syntax_view #
Flutter Syntax Highlighter
Usage #
String code = """
// Importing core libraries
import 'dart:math';
int fibonacci(int n) {
if (n == 0 || n == 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
var result = fibonacci(20);
/* and there
you have it! */
""";
SyntaxView(
code: code,
syntax: Syntax.DART,
syntaxTheme: SyntaxTheme.dracula(),
withZoom: true,
withLinesCount: true
);
Supported Syntax #
- ✅ Dart
- ✅ C
- ✅ C++
- ✅ Java
- ✅ Kotlin
- ✅ Swift
- ✅ JavaScript
- ✅ YAML
- More will be added.
Themes #
Installing #
TODO #
- ❌ Add More Syntax Support.
- ❌ Add More Themes.
Contributing #
- if you are familiar with Regular Expressions in Dart and would like contribute in adding further syntax support. it will be very appreciated!
Contributors ✨ #
Thanks goes to these wonderful people!
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.