1
0
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:
Brett Morgan
2021-06-05 12:24:28 +10:00
committed by GitHub
parent 14921d0c06
commit 936d1fdaae
230 changed files with 2361 additions and 2444 deletions

View File

@@ -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);