dictionary_text library

A beautiful, customizable Flutter widget that transforms any text into an interactive dictionary.

Tap or hold any word to see definitions, pronunciations, and examples in a beautifully animated bottom sheet or dialog.

Getting Started

import 'package:dictionary_text/dictionary_text.dart';

DictionaryText(
  text: 'Flutter',
  displayMode: DisplayMode.bottomSheet,
  triggerMode: TriggerMode.tap,
)

Classes

AnimatedTextWrapper
A wrapper widget that provides tap animation effects for text.
ColorUtils
Utility class for color-related calculations.
DefinitionModel
Represents a single definition of a word.
DictionaryConfig
Configuration for the DictionaryText widget appearance and behavior.
DictionaryController
Controller for managing dictionary lookup state.
DictionaryDisplay
Widget that displays dictionary definition content.
DictionaryModel
Represents a complete dictionary entry for a word.
DictionaryService
Service for fetching word definitions from the dictionary API.
DictionaryText
A widget that transforms text into an interactive dictionary.
LicenseModel
Represents license information for dictionary data.
MeaningModel
Represents a meaning of a word grouped by part of speech.
PhoneticModel
Represents phonetic information for a word.
StorageHelper
Helper class for managing local storage operations.
TutorialConfig
Configuration for the tutorial guide overlay.

Enums

DisplayMode
Defines how the dictionary definition is displayed.
TriggerMode
Defines the gesture that triggers the dictionary lookup.

Exceptions / Errors

DictionaryError
Represents an error response from the dictionary API.