Skip to content

Commit

Permalink
Merge pull request #52 from solid-software/task/add-readme
Browse files Browse the repository at this point in the history
Task/Add README
  • Loading branch information
solid-danylokhvan committed Jul 6, 2023
2 parents 43d2562 + 3b9d275 commit 0224ec7
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 14 deletions.
71 changes: 57 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,74 @@ and the Flutter guide for
[developing packages and plugins](https://flutter.dev/developing-packages).
-->

![languagetool popup presentation](readme/languagetool.gif)
# LanguageTool TextField

TODO: Put a short description of the package here that helps potential users
know whether this package might be useful for them.
Providing powerful spell checking and grammar correction capabilities.

<div>
<img src="doc/misspeling_langtool.png" width="310" height="667">
&nbsp
&nbsp
<img src="doc/typo_langtool.png" width="310" height="667">
&nbsp
&nbsp
<img src="doc/uncategorized_langtool.png" width="310" height="667">
</div>

## Features

TODO: List what your package can do. Maybe include images, gifs, or videos.
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

TODO: List prerequisites and provide or point to information on how to
start using the package.
1. Add dependency:

## Usage
```dart
flutter pub add language_tool_textfield
```

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.
2. Import the package:

```dart
const like = 'sample';
import 'package:language_tool_textfield/language_tool_textfield.dart';
```

## Additional information

TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
## Quick Start
To start using the plugin, copy this code or follow the example project in 'languagetool_textfield/example'

```dart
// 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();
```

## Current issues

Current issues list [is here](https://github.com/solid-software/languagetool_textfield/issues).\
Found a bug? [Open the issue](https://github.com/solid-software/languagetool_textfield/issues/new).

Binary file added doc/misspeling_langtool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/typo_langtool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/uncategorized_langtool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed readme/languagetool.gif
Binary file not shown.

0 comments on commit 0224ec7

Please sign in to comment.