{"id":29892273,"url":"https://github.com/dariomatias-dev/flutter_syntax_highlighter","last_synced_at":"2026-05-03T12:34:47.639Z","repository":{"id":305209361,"uuid":"1021114768","full_name":"dariomatias-dev/flutter_syntax_highlighter","owner":"dariomatias-dev","description":"A widget for syntax highlighting of Dart and Flutter code, with support for light and dark themes, line numbers, and code selection.","archived":false,"fork":false,"pushed_at":"2025-08-24T18:15:27.000Z","size":63710,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T23:16:36.735Z","etag":null,"topics":["dart","flutter","package","pubdev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_syntax_highlighter","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dariomatias-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-16T23:01:41.000Z","updated_at":"2025-08-24T18:15:31.000Z","dependencies_parsed_at":"2025-07-18T23:28:14.565Z","dependency_job_id":"6a02251d-d937-4c1f-9c3a-2bdf82572294","html_url":"https://github.com/dariomatias-dev/flutter_syntax_highlighter","commit_stats":null,"previous_names":["dariomatias-dev/flutter_syntax_highlighter"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/dariomatias-dev/flutter_syntax_highlighter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariomatias-dev%2Fflutter_syntax_highlighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariomatias-dev%2Fflutter_syntax_highlighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariomatias-dev%2Fflutter_syntax_highlighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariomatias-dev%2Fflutter_syntax_highlighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dariomatias-dev","download_url":"https://codeload.github.com/dariomatias-dev/flutter_syntax_highlighter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dariomatias-dev%2Fflutter_syntax_highlighter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32569714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","package","pubdev"],"created_at":"2025-08-01T01:22:22.029Z","updated_at":"2026-05-03T12:34:47.628Z","avatar_url":"https://github.com/dariomatias-dev.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Flutter-02569B?style=for-the-badge\u0026logo=flutter\u0026logoColor=white\" alt=\"Flutter\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Dart-0175C2?style=for-the-badge\u0026logo=dart\u0026logoColor=white\" alt=\"Dart\"\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n# \u003cdiv align=\"center\"\u003eFlutter Syntax Highlighter\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\nA widget for syntax highlighting of Dart and Flutter code, with support for light and dark themes, line numbers, and code selection.\n\u003cbr\u003e\n\u003ca href=\"#about-the-project\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003ca href=\"https://pub.dev/packages/flutter_syntax_highlighter\"\u003eView on pub.dev\u003c/a\u003e\n·\n\u003ca href=\"https://github.com/dariomatias-dev/flutter_syntax_highlighter/issues\"\u003eReport Bug\u003c/a\u003e\n·\n\u003ca href=\"https://github.com/dariomatias-dev/flutter_syntax_highlighter/issues\"\u003eRequest Feature\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/pub/v/flutter_syntax_highlighter.svg\" alt=\"Pub Version\"\u003e\n\u003cimg src=\"https://img.shields.io/pub/likes/flutter_syntax_highlighter\" alt=\"Pub Likes\"\u003e\n\u003cimg src=\"https://img.shields.io/pub/points/flutter_syntax_highlighter\" alt=\"Pub Points\"\u003e\n\u003cimg src=\"https://img.shields.io/pub/popularity/flutter_syntax_highlighter\" alt=\"Pub Popularity\"\u003e\n\u003c/div\u003e\n\n## Table of Contents\n\n- [About The Project](#about-the-project)\n- [Features](#features)\n- [Built With](#built-with)\n- [Screenshots](#screenshots)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n  - [Basic Usage](#basic-usage)\n  - [Using Custom Themes](#using-custom-themes)\n- [Properties](#properties)\n- [Contributing](#contributing)\n- [License](#license)\n- [Author](#author)\n\n## About The Project\n\nFlutter Syntax Highlighter is a widget designed to display Dart and Flutter code blocks cleanly and legibly within a Flutter application. It formats the code with appropriate colors and styles, simulating the appearance of a professional code editor.\n\nThe package supports multiple themes, both light and dark, and allows for customizations such as displaying line numbers and enabling text selection, making it ideal for tutorials, documentation, or any app that needs to present source code elegantly.\n\n## Features\n\n- **Syntax Highlighting:** Automatically formats Dart and Flutter code.\n- **Multiple Themes:** Includes a vast collection of popular themes like Dracula, Nord, Atom One, GitHub, and VSCode.\n- **Customizable Themes:** Define your own color schemes by extending the `SyntaxColorSchema` class.\n- **Light and Dark Mode:** Adapts syntax highlighting based on the application's theme.\n- **Line Numbers:** Option to show or hide line numbers next to the code.\n- **Code Selection:** Allows users to select and copy text from the code block.\n- **Easy to Use:** Simple integration with a single widget.\n\n## Built With\n\n- **[Flutter](https://flutter.dev/)** – A UI toolkit by Google for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.\n- **[Dart](https://dart.dev/)** – The programming language used for Flutter, optimized for building fast apps on any platform.\n\n## Screenshots\n\nBelow you can find previews for all the themes provided by the package:\n\n| Theme 1 | Theme 2 | Theme 3 |\n|---------|---------|---------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/a11y_light.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/a11y_dark.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/android_studio_light.jpg\" width=\"300\" /\u003e |\n| **A11y Light** | **A11y Dark** | **Android Studio Light** |\n\n| Theme 4 | Theme 5 | Theme 6 |\n|---------|---------|---------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/android_studio_dark.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/atom_one_light.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/atom_one_dark.jpg\" width=\"300\" /\u003e |\n| **Android Studio Dark** | **Atom One Light** | **Atom One Dark** |\n\n| Theme 7 | Theme 8 | Theme 9 |\n|---------|---------|---------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/cobalt2.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/dark_high_contrast.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/dracula.jpg\" width=\"300\" /\u003e |\n| **Cobalt2** | **Dark High Contrast** | **Dracula** |\n\n| Theme 10 | Theme 11 | Theme 12 |\n|----------|----------|----------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/github_light.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/github_dark.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/light_high_contrast.jpg\" width=\"300\" /\u003e |\n| **GitHub Light** | **GitHub Dark** | **Light High Contrast** |\n\n| Theme 13 | Theme 14 | Theme 15 |\n|----------|----------|----------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/material_oceanic.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/monokai.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/night_owl.jpg\" width=\"300\" /\u003e |\n| **Material Oceanic** | **Monokai** | **Night Owl** |\n\n| Theme 16 | Theme 17 | Theme 18 |\n|----------|----------|----------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/nord.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/one_dark_pro.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/panda_syntax.jpg\" width=\"300\" /\u003e |\n| **Nord** | **One Dark Pro** | **Panda Syntax** |\n\n| Theme 19 | Theme 20 | Theme 21 |\n|----------|----------|----------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/solarized_light.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/solarized_dark.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/stack_overflow_light.jpg\" width=\"300\" /\u003e |\n| **Solarized Light** | **Solarized Dark** | **StackOverflow Light** |\n\n| Theme 22 | Theme 23 | Theme 24 |\n|----------|----------|----------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/stack_overflow_dark.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/synthwave84.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/vs_code_light.jpg\" width=\"300\" /\u003e |\n| **StackOverflow Dark** | **SynthWave84** | **VSCode Light** |\n\n| Theme 25 | Theme 26 | Theme 27 |\n|----------|----------|----------|\n| \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/vs_code_dark.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/xcode_light.jpg\" width=\"300\" /\u003e | \u003cimg src=\"https://raw.githubusercontent.com/dariomatias-dev/flutter_syntax_highlighter/refs/heads/main/screenshots/xcode_dark.jpg\" width=\"300\" /\u003e |\n| **VSCode Dark** | **Xcode Light** | **Xcode Dark** |\n\n## Getting Started\n\nTo install the package, run the following command in your project terminal:\n\n```bash\nflutter pub add flutter_syntax_highlighter\n```\n\n## Usage\n\n### Basic Usage\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_syntax_highlighter/flutter_syntax_highlighter.dart';\n\nvoid main() {\n  runApp(const MyApp());\n}\n\nconst String sampleCode = '''\nimport 'package:flutter/material.dart';\n\nclass CounterPage extends StatefulWidget {\n  const CounterPage({super.key});\n\n  @override\n  State\u003cCounterPage\u003e createState() =\u003e _CounterPageState();\n}\n\nclass _CounterPageState extends State\u003cCounterPage\u003e {\n  int _count = 0;\n\n  void _increment() {\n    setState(() {\n      _count++;\n    });\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        title: const Text('Counter'),\n      ),\n      body: Center(\n        child: Text(\n          'Count: $_count',\n          style: Theme.of(context).textTheme.headlineMedium,\n        ),\n      ),\n      floatingActionButton: FloatingActionButton(\n        onPressed: _increment,\n        child: const Icon(Icons.add),\n      ),\n    );\n  }\n}\n\n''';\n\nclass MyApp extends StatefulWidget {\n  const MyApp({super.key});\n\n  @override\n  State\u003cMyApp\u003e createState() =\u003e _MyAppState();\n}\n\nclass _MyAppState extends State\u003cMyApp\u003e {\n  bool _isDarkMode = false;\n  bool _showLineNumbers = true;\n  bool _enableCodeSelection = true;\n\n  void _toggleTheme() {\n    setState(() {\n      _isDarkMode = !_isDarkMode;\n    });\n  }\n\n  void _toggleLineNumbers() {\n    setState(() {\n      _showLineNumbers = !_showLineNumbers;\n    });\n  }\n\n  void _toggleCodeSelection() {\n    setState(() {\n      _enableCodeSelection = !_enableCodeSelection;\n    });\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      title: 'Flutter Syntax Highlighter',\n      theme: ThemeData.light(),\n      darkTheme: ThemeData.dark(),\n      themeMode: _isDarkMode ? ThemeMode.dark : ThemeMode.light,\n      debugShowCheckedModeBanner: false,\n      home: Scaffold(\n        appBar: AppBar(\n          title: const Text('Flutter Syntax Highlighter'),\n          actions: \u003cWidget\u003e[\n            IconButton(\n              icon: Icon(_isDarkMode ? Icons.light_mode : Icons.dark_mode),\n              onPressed: _toggleTheme,\n              tooltip: 'Toggle Theme',\n            ),\n          ],\n        ),\n        body: SafeArea(\n          child: Column(\n            children: \u003cWidget\u003e[\n              SwitchListTile(\n                title: const Text('Show Line Numbers'),\n                value: _showLineNumbers,\n                onChanged: (value) =\u003e _toggleLineNumbers(),\n              ),\n              SwitchListTile(\n                title: const Text('Enable Code Selection'),\n                value: _enableCodeSelection,\n                onChanged: (value) =\u003e _toggleCodeSelection(),\n              ),\n              SizedBox(height: 12.0),\n              Expanded(\n                child: Padding(\n                  padding: const EdgeInsets.all(8.0),\n                  child: SingleChildScrollView(\n                    child: SyntaxHighlighter(\n                      code: sampleCode,\n                      isDarkMode: _isDarkMode,\n                      showLineNumbers: _showLineNumbers,\n                      enableCodeSelection: _enableCodeSelection,\n                    ),\n                  ),\n                ),\n              ),\n            ],\n          ),\n        ),\n      ),\n    );\n  }\n}\n```\n\n### Using Custom Themes\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_syntax_highlighter/flutter_syntax_highlighter.dart';\n\nvoid main() {\n  runApp(const MyApp());\n}\n\nclass MyLightSyntaxTheme extends SyntaxColorSchema {\n  const MyLightSyntaxTheme()\n    : super(\n        baseStyle: const Color(0xFF2B2B2B),\n        lineNumberStyle: const Color(0xFFAAAAAA),\n        keywordStyle: const Color(0xFF8959A8),\n        specialKeywordStyle: const Color(0xFFAA5DCD),\n        storageModifierStyle: const Color(0xFFAA5DCD),\n        typeStyle: const Color(0xFF3E999F),\n        functionStyle: const Color(0xFF4271AE),\n        literalStyle: const Color(0xFF795E26),\n        commentStyle: const Color(0xFF8E908C),\n        punctuationStyle: const Color(0xFF2B2B2B),\n        stringStyle: const Color(0xFF718C00),\n        numberStyle: const Color(0xFF0992D6),\n        bracket1Style: const Color(0xFF3E9F5E),\n        bracket2Style: const Color(0xFFD67F00),\n        bracket3Style: const Color(0xFFD64F4F),\n        variableStyle: const Color(0xFF4271AE),\n      );\n}\n\nclass MyDarkSyntaxTheme extends SyntaxColorSchema {\n  const MyDarkSyntaxTheme()\n      : super(\n          baseStyle: const Color(0xFFE0E0E0),\n          lineNumberStyle: const Color(0xFF7F8C8D),\n          keywordStyle: const Color(0xFF81A2BE),\n          specialKeywordStyle: const Color(0xFFB294BB),\n          storageModifierStyle: const Color(0xFFB294BB),\n          typeStyle: const Color(0xFFF0C674),\n          functionStyle: const Color(0xFF8ABEB7),\n          literalStyle: const Color(0xFFDE935F),\n          commentStyle: const Color(0xFF969896),\n          punctuationStyle: const Color(0xFFE0E0E0),\n          stringStyle: const Color(0xFFB5BD68),\n          numberStyle: const Color(0xFFDE935F),\n          bracket1Style: const Color(0xFFA0E8A5),\n          bracket2Style: const Color(0xFFD5A0E8),\n          bracket3Style: const Color(0xFFE8A0A0),\n          variableStyle: const Color(0xFF8ABEB7),\n        );\n}\n\nconst String sampleCode = '''\nimport 'package:flutter/material.dart';\n\nclass CounterPage extends StatefulWidget {\n  const CounterPage({super.key});\n\n  @override\n  State\u003cCounterPage\u003e createState() =\u003e _CounterPageState();\n}\n\nclass _CounterPageState extends State\u003cCounterPage\u003e {\n  int _count = 0;\n\n  void _increment() {\n    setState(() {\n      _count++;\n    });\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        title: const Text('Counter'),\n      ),\n      body: Center(\n        child: Text(\n          'Count: \\$_count',\n          style: Theme.of(context).textTheme.headlineMedium,\n        ),\n      ),\n      floatingActionButton: FloatingActionButton(\n        onPressed: _increment,\n        child: const Icon(Icons.add),\n      ),\n    );\n  }\n}\n\n''';\n\nclass MyApp extends StatefulWidget {\n  const MyApp({super.key});\n\n  @override\n  State\u003cMyApp\u003e createState() =\u003e _MyAppState();\n}\n\nclass _MyAppState extends State\u003cMyApp\u003e {\n  bool _isDarkMode = false;\n  bool _showLineNumbers = true;\n  bool _enableCodeSelection = true;\n\n  void _toggleTheme() {\n    setState(() {\n      _isDarkMode = !_isDarkMode;\n    });\n  }\n\n  void _toggleLineNumbers() {\n    setState(() {\n      _showLineNumbers = !_showLineNumbers;\n    });\n  }\n\n  void _toggleCodeSelection() {\n    setState(() {\n      _enableCodeSelection = !_enableCodeSelection;\n    });\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      title: 'Flutter Syntax Highlighter',\n      theme: ThemeData.light(),\n      darkTheme: ThemeData.dark(),\n      themeMode: _isDarkMode ? ThemeMode.dark : ThemeMode.light,\n      debugShowCheckedModeBanner: false,\n      home: Scaffold(\n        appBar: AppBar(\n          title: const Text('Flutter Syntax Highlighter'),\n          actions: \u003cWidget\u003e[\n            IconButton(\n              icon: Icon(_isDarkMode ? Icons.light_mode : Icons.dark_mode),\n              onPressed: _toggleTheme,\n              tooltip: 'Toggle Theme',\n            ),\n          ],\n        ),\n        body: SafeArea(\n          child: Column(\n            children: \u003cWidget\u003e[\n              SwitchListTile(\n                title: const Text('Show Line Numbers'),\n                value: _showLineNumbers,\n                onChanged: (value) =\u003e _toggleLineNumbers(),\n              ),\n              SwitchListTile(\n                title: const Text('Enable Code Selection'),\n                value: _enableCodeSelection,\n                onChanged: (value) =\u003e _toggleCodeSelection(),\n              ),\n              SizedBox(height: 12.0),\n              Expanded(\n                child: Padding(\n                  padding: const EdgeInsets.all(8.0),\n                  child: SingleChildScrollView(\n                    child: SyntaxHighlighter(\n                      code: sampleCode,\n                      isDarkMode: _isDarkMode,\n                      darkColorSchema: MyDarkSyntaxTheme(),\n                      lightColorSchema: MyLightSyntaxTheme(),\n                      showLineNumbers: _showLineNumbers,\n                      enableCodeSelection: _enableCodeSelection,\n                    ),\n                  ),\n                ),\n              ),\n            ],\n          ),\n        ),\n      ),\n    );\n  }\n}\n```\n\n## Properties\n\n| Property            | Type               | Default                  | Description                                          |\n| ------------------- | ------------------ | ------------------------ | ---------------------------------------------------- |\n| code                | String             | –                        | The source code to be displayed.                     |\n| isDarkMode          | bool               | false                    | Toggles between light and dark mode.                 |\n| darkColorSchema     | SyntaxColorSchema? | SyntaxThemes.vsCodeDark  | Custom color scheme for dark mode.                   |\n| lightColorSchema    | SyntaxColorSchema? | SyntaxThemes.vsCodeLight | Custom color scheme for light mode.                  |\n| fontSize            | double             | 14.0                     | Font size for the code text.                         |\n| lineHeight          | double             | 1.35                     | Height of each line of code.                         |\n| showLineNumbers     | bool               | true                     | Displays line numbers next to the code.              |\n| enableCodeSelection | bool               | true                     | Allows selection of the displayed text.              |\n| maxCharCount        | int?               | null                     | Maximum number of characters for the line numbering. |\n| lineNumberOffset    | int                | 1                        | The starting number for line count.                  |\n\n## Contributing\n\n1. Fork the project.\n2. Create a feature branch:\n\n```bash\ngit checkout -b feature/AmazingFeature\n```\n\n3. Commit changes:\n\n```bash\ngit commit -m 'Add some AmazingFeature'\n```\n\n4. Push to branch:\n\n```bash\ngit push origin feature/AmazingFeature\n```\n\n5. Open a Pull Request.\n\n## License\n\nDistributed under the **MIT License**. See the [LICENSE](LICENSE) file for more information.\n\n## Author\n\nDeveloped by **Dário Matias**:\n\n- **Portfolio**: [dariomatias-dev](https://dariomatias-dev.com)\n- **GitHub**: [dariomatias-dev](https://github.com/dariomatias-dev)\n- **Email**: [matiasdario75@gmail.com](mailto:matiasdario75@gmail.com)\n- **Instagram**: [@dariomatias_dev](https://instagram.com/dariomatias_dev)\n- **LinkedIn**: [linkedin.com/in/dariomatias-dev](https://linkedin.com/in/dariomatias-dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariomatias-dev%2Fflutter_syntax_highlighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdariomatias-dev%2Fflutter_syntax_highlighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdariomatias-dev%2Fflutter_syntax_highlighter/lists"}