-
Notifications
You must be signed in to change notification settings - Fork 907
I need the text to have a static color #2549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To force black text and disable autocorrect in Flutter Quill (v11+): QuillEditor(
controller: _controller,
focusNode: FocusNode(),
scrollController: ScrollController(),
scrollable: true,
readOnly: false,
autoFocus: true,
expands: false,
padding: EdgeInsets.zero,
config: QuillEditorConfig(
autocorrect: false,
enableSuggestions: false,
),
customStyles: DefaultStyles(
paragraph: DefaultTextBlockStyle(
TextStyle(color: Colors.black), // Force black text
Tuple2(16, 0),
Tuple2(0, 0),
null,
),
),
) If you're hitting crashes on iOS, stub this method inside void showAutocorrectionPromptRect(int start, int end) {
// prevent crash
} For web: quill.root.setAttribute('spellcheck', 'false'); This keeps your text black, disables autocorrect, and avoids web/iOS issues. |
|
Here’s a quick guide to your two questions: 📍 Where is
|
Have you checked for an existing issue?
Flutter Quill Version
11.2.0
Steps to Reproduce
I need the text to have a static color that I define, and not change depending on the style (bold, italics, underline, etc.).
The other thing is that it corrects the text for me constantly.
Expected results
Text black forever, with white background
Actual results
white text by default, with white background
Additional Context
Screenshots / Video demonstration
[Attach media here]
Logs
[Paste logs here]
The text was updated successfully, but these errors were encountered: