-
Notifications
You must be signed in to change notification settings - Fork 82
Add Custom Search (CTRL + F) #229
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #229 +/- ##
==========================================
+ Coverage 80.93% 81.96% +1.02%
==========================================
Files 88 107 +19
Lines 2728 3166 +438
==========================================
+ Hits 2208 2595 +387
- Misses 520 571 +51
|
@@ -0,0 +1,12 @@ | |||
import 'package:flutter/widgets.dart'; | |||
|
|||
class IgnoreIntent extends Intent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use this one? https://api.flutter.dev/flutter/widgets/DoNothingIntent-class.html
_processText(textAfter); | ||
} | ||
} else { | ||
if (sliceIndex < 0 || sliceIndex > text.length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (sliceIndex < 0 || sliceIndex > text.length) { | |
if (sliceIndex < 0 || sliceIndex >= text.length) { |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is equal, we can call substring on it like 'a'.substring(0, 1);
.
This is the range, that implies inability to substring the text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe I should add clarification comment?
SearchController.isEnabled
to better place #234