languagetool_textfield 0.0.2 copy "languagetool_textfield: ^0.0.2" to clipboard
languagetool_textfield: ^0.0.2 copied to clipboard

Languagetool text field.

LanguageTool TextField #

Providing powerful spell-checking and grammar correction capabilities.

       

Features #

The LanguageTool TextField package is a spell-checker designed for Flutter apps. It integrates with the LanguageTool API to offer real-time spell-checking capabilities. This package will enhance text input accuracy by automatically detecting and highlighting spelling errors as users type.

It's particularly useful for apps that require precise text input, like chat or note-taking apps. By using the LanguageTool TextField package, developers can improve the user experience by providing an intuitive and reliable spell-checking feature.

Getting started #

  1. Add dependency:
flutter pub add language_tool_textfield
  1. Import the package:
import 'package:language_tool_textfield/language_tool_textfield.dart';

Quick Start #

To start using the plugin, copy this code or follow the example project in 'languagetool_textfield/example'

// Create a base API client
final _languageTool = LanguageToolClient();

// Add input debouncing
final _debouncedLangService = DebounceLangToolService(
  LangToolService(_languageTool),
  const Duration(milliseconds: 500),
);

// Create a text controller for the Widget
final _controller = ColoredTextEditingController(
    languageCheckService: _debouncedLangService
);

// Use the text field widget in your layout
child: LanguageToolTextField(
  style: const TextStyle(),
  decoration: const InputDecoration(),
  coloredController: _controller,
  mistakePopup: MistakePopup(popupRenderer: PopupOverlayRenderer()),
);

// Don't forget to dispose the controller
_controller.dispose();

This is an unofficial plugin. We are not affiliated with LanguageTool. All logos are of their respected owners.

Current issues #

Current issues list is here.
Found a bug? Open the issue.