Comments (3)
Unfortunately this is impossible for soft keyboards: flutter/flutter#86560
Details: https://medium.com/super-declarative/why-you-cant-detect-a-delete-action-in-an-empty-flutter-text-field-3cf53e47b631
from material_tag_editor.
I remember that I was playing around with the whitespace idea. While it was somewhat working, it ended up being complicated and can be buggy if user play around with the TextField so I didn't push it to develop. Hopefully, there are someway we could easily implement it 😢
from material_tag_editor.
Wrap TagEditor with RawKeyboardListener.
Then, you can get backspace key event while TextField is empty.
RawKeyboardListener(
focusNode: FocusNode(),
onKey: (event){
if(event.runtimeType.toString() == 'RawKeyDownEvent'){
if (event.logicalKey == LogicalKeyboardKey.backspace) {
if(pop != null){
setState(() {
tagList.remove(tagList.last);
});
}
}
}
},
child: TagEditor( ... ),
}
from material_tag_editor.
Related Issues (19)
- How to change the color of the chips? HOT 1
- how to integrate the tag_editor like drop down? HOT 2
- The pub version requires Widget type Chip HOT 1
- Allow more control over the text box HOT 2
- Allow us to set submit to complete the tag instead of dismissing the keyboard HOT 4
- Expose on TextField valueChanged and onSubmitted HOT 3
- Expose focusNode HOT 1
- Add Github Action for CD
- Please add controller parameter HOT 2
- Suggestion new features - Min/Max characters of tags HOT 4
- Suggestion new features - Not null tags HOT 1
- inputformatters usage HOT 2
- Why use CustomMultiChildLayout HOT 2
- Textfield chips does not support multilines. HOT 2
- chips displayed below input field. HOT 1
- Is it possible to customize close button place? HOT 5
- How to prevent adding empty row at the end? HOT 9
- the value list cant disposed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material_tag_editor.