fix: Spellchecker on Product Name field#7447
Conversation
SISIR-REDDY
commented
Mar 15, 2026
- Fixes: Spellchecker on Product Name field #5415\n\n### What\n- Enabled the spellchecker on the Product Name field.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #7447 +/- ##
==========================================
- Coverage 9.54% 9.10% -0.45%
==========================================
Files 325 625 +300
Lines 16411 36638 +20227
==========================================
+ Hits 1567 3337 +1770
- Misses 14844 33301 +18457 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@SISIR-REDDY we're short on reviewing power, so I requested a Copilot initial review meanwhile |
There was a problem hiding this comment.
Pull request overview
Enables OS spellchecking for the Product Name input in the product “Add basic details” flow, addressing issue #5415.
Changes:
- Turned on
spellCheckConfigurationfor the Product NameSmoothTextFormField.
| ), | ||
| allowEmojis: false, | ||
| maxLines: 1, | ||
| spellCheckConfiguration: const SpellCheckConfiguration(), |
There was a problem hiding this comment.
This enables spellcheck unconditionally. Elsewhere spellcheck is explicitly guarded to mobile platforms (e.g., EditOCRTextField enables it only when Platform.isAndroid || Platform.isIOS). If the intent is to enable spellcheck only where supported/desired, consider adding the same platform guard here and using SpellCheckConfiguration.disabled() otherwise.
| spellCheckConfiguration: const SpellCheckConfiguration(), | |
| spellCheckConfiguration: | |
| Platform.isAndroid || Platform.isIOS | |
| ? const SpellCheckConfiguration() | |
| : const SpellCheckConfiguration.disabled(), |