搜尋套件、儲存庫與 APP 分類

languagetool_textfield 封面
套件詳情v1.0.0

languagetool_textfield

LanguageTool TextField 套件是一個為 Flutter 應用程式設計的拼字檢查器。這對於需要文字輸入的應用程式(如訊息、筆記和電子郵件)非常有用。

iOSWeb
近 30 天下載
1560
喜歡數
94
Pub 分數
160

安裝套件

flutter pub add languagetool_textfield

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

LanguageTool TextField 套件為 Flutter 應用程式增強了即時拼字與語法檢查功能,適用於文字輸入欄位。專為需要精確文字輸入的應用程式(如訊息傳遞、筆記記錄和電子郵件客戶端)設計,與 LanguageTool API 無縫整合,可即時提供拼字與語法錯誤的回饋。此套件專為 iOS 與 Web 平台打造,支援多語言文字驗證,並在不干擾工作流程的情況下提升使用者輸入品質。該套件輕量且易於透過簡單的 pub add 命令實作。

適用情境

  • 即時拼字檢查在訊息應用中
  • 筆記工具中的語法驗證
  • 電子郵件編寫中的錯誤檢測
  • 多語言文本輸入驗證
  • 提升使用者輸入的準確性

主要特色

  • 即時拼字與語法檢查
  • 支援多種語言
  • 與 Flutter 的輕量級整合
  • 跨平台(iOS 和 Web)
  • 透過 pub.dev 簡單設定
  • 基於API的錯誤檢測

適合對象

  • 開發文字密集型 Flutter 應用的開發者
  • 需要高輸入精確度的應用程式
  • 教育或寫作導向的應用程式
  • 多語言支援需要
  • 團隊優先考慮文字輸入的使用者體驗

使用建議

  • 需要互聯網連接以存取API
  • 可能因網路速度而產生延遲
  • 錯誤建議的自定義有限
  • 依賴第三方 LanguageTool 服務
  • 敏感文字的潛在資料隱私考量

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

LanguageTool TextField

style: solid langtool

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. Run this command:
flutter pub add languagetool_textfield
  1. Import the package:
import 'package:languagetool_textfield/languagetool_textfield.dart';

Quick Start

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

// Create a text controller for the Widget
final _controller = LanguageToolController();

// Use the text field widget in your layout
child: LanguageToolTextField(
  controller: _controller,

  // A language code like en-US, de-DE, fr, or auto to guess
  // the language automatically.
  // language = 'auto' by default.
  language: 'en-US',
);

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

Using Debounce and Throttle in LanguageTool TextField

To incorporate the debounce or throttle functionality into the LanguageTool TextField, follow these:

Create a LanguageToolController and provide the desired debounce/throttle delay duration and delay type:

final _controller = LanguageToolController(
  // If the delay value is [Duration.zero], no delay is applied.
  delay: Duration(milliseconds: 500), // Set the debounce/throttle delay duration here
  delayType: DelayType.debouncing, // Choose either DelayType.debouncing or DelayType.throttling
);

DelayType.debouncing - Calls a function when a user hasn't carried out the event in a specific amount of time.

DelayType.throttling - Calls a function at intervals of a specified amount of time while the user is carrying out the event.

Legal

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.

所屬分類

依賴

依賴清單 6 項

原始碼儲存庫

使用此套件的專案