filtering by author works
This commit is contained in:
@@ -30,7 +30,7 @@ class ListPage extends StatelessWidget {
|
||||
return Center(child: Text(provider.error!));
|
||||
}
|
||||
|
||||
final quoteCount = provider.quotes.length;
|
||||
final quoteCount = provider.filteredQuotes.length;
|
||||
|
||||
return
|
||||
Column(
|
||||
@@ -229,9 +229,7 @@ class ListPage extends StatelessWidget {
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.search),
|
||||
onPressed: () {
|
||||
provider.filterQuotes;
|
||||
},
|
||||
onPressed: provider.filterQuotes,
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(Icons.more_horiz),
|
||||
|
||||
Reference in New Issue
Block a user