mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 15:28:44 +00:00
Upgrading samples to flutter_lints, part 1 of n (#804)
This commit is contained in:
@@ -37,13 +37,13 @@ void main() {
|
||||
}));
|
||||
|
||||
// Filter cards on each keypress
|
||||
searchBar.listen('keydown', (Event e) async {
|
||||
searchBar.listen('keydown', (e) async {
|
||||
await Future(() {});
|
||||
handleSearch();
|
||||
});
|
||||
|
||||
// Update the URL only when the user is done typing in the search bar
|
||||
searchBar.listen('change', (Event e) {
|
||||
searchBar.listen('change', (e) {
|
||||
queryParams[searchKey] = searchBar.value;
|
||||
updateHash();
|
||||
});
|
||||
@@ -58,7 +58,7 @@ void main() {
|
||||
|
||||
// Initialize chips
|
||||
chipSet = MDCChipSet(querySelector('.mdc-chip-set'));
|
||||
chipSet.listen('MDCChip:selection', (Event e) {
|
||||
chipSet.listen('MDCChip:selection', (e) {
|
||||
// Get the query parameters for this chip
|
||||
var selectedChipIndex = chipSet.chips.indexWhere((chip) => chip.selected);
|
||||
var chipParams = paramsForChip(selectedChipIndex);
|
||||
|
||||
Reference in New Issue
Block a user