creomobile / combos Goto Github PK
View Code? Open in Web Editor NEWCombo Widgets for Flutter
License: BSD 3-Clause "New" or "Revised" License
Combo Widgets for Flutter
License: BSD 3-Clause "New" or "Revised" License
I tested the ListCombo.
List<String> list = ['11111', '22222'];
String value = '11111';
child: ListCombo<String>(
getList: () async {
await Future.delayed(const Duration(milliseconds: 500));
return list;
},
RaisedButton(onPressed: () {
list = ['88888', '99999'];
value = '88888';
setState(() {});
}),
the popup list did not refresh.
I read the code, some variable is final or const.so it does not support modify.
please check it.
If you set cleanAfterSelection true for TypeaheadCombo, you invariably get the subject exception. You don't have a default value for the closeAfterItemTapped:
void itemTapped(TItem item, {@required bool closeAfterItemTapped}) {
if (widget.onItemTapped != null) widget.onItemTapped(item);
if (closeAfterItemTapped) super.close();
}
but you end up calling it with just a null argument in initState method here:
if (widget.selected != null) super.itemTapped(null);
I even see the exception for a default value of cleanAfterSelection, if I select something and then start to delete characters from the end of the selection.
When using a MenuItemCombo for iOS/Android. You need to do a long press for triggering the onItemTapped
. Any one has an idea how to fix this? I just want a quick tap on an item to trigger onItemTapped
MenuItemCombo<String>( item: MenuItem( 'File', () => [ MenuItem('New'), MenuItem.separator, MenuItem('Open'), MenuItem('Save'), MenuItem('Save As...'), MenuItem.separator, MenuItem( 'Recent', () => [ MenuItem('Folders', () async { await Future.delayed( Duration(milliseconds: 500)); return [ MenuItem('Folder 1'), MenuItem('Folder 2'), MenuItem('Folder 3'), ]; }), MenuItem('Files', () async { await Future.delayed( Duration(milliseconds: 500)); return [ MenuItem('File 1'), MenuItem('File 2'), MenuItem('File 3'), ]; }), ]), MenuItem.separator, MenuItem('Exit'), ]), itemBuilder: (context, parameters, item) => Padding( padding: const EdgeInsets.all(16), child: Text(item.item), ), onItemTapped: (value) { final dialog = AlertDialog(content: Text('${value.item} tapped!')); showDialog(context: context, builder: (_) => dialog); }, )
Do you have any idea about migration of this incredible package to null-safety ?
This is an important thing to a dart programmer because now programmers are upgrading their projects to null-safety (like the way I do) and need the packages to be updated too.
Thanks
Hi
I need for selector combo _CombosDemoItem, to add a decoration, for add on top-sx label always visibile:
i need to see label and hint text ALWAYS visibile.
decoration: InputDecoration(
floatingLabelBehavior: FloatingLabelBehavior.always,
labelText: 'Label on top - sx ',
hintText: 'hint inside edit',
border: OutlineInputBorder(),
),
Thank You :)
Errors when compiling on flutter 2.5
/E:/src/flutter/.pub-cache/hosted/pub.dartlang.org/combos-1.2.0/lib/combos.dart:2423:48: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
Is there a way to navigate through the combo items using the up/down or TAB key?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.