Skip to content

Commit

Permalink
Merge pull request #47 from mafreud/fix-algolia
Browse files Browse the repository at this point in the history
fix algolia on android
  • Loading branch information
mafreud authored May 16, 2021
2 parents 27547eb + 275227d commit 9712f5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
21 changes: 7 additions & 14 deletions lib/app/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,20 @@ class HomePage extends ConsumerWidget {
MaterialPageRoute(builder: (context) => WelcomePage()));
}),
actions: [
Platform.isIOS
? IconButton(
icon: Icon(Icons.search),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => AlgoliaPage()));
},
)
: SizedBox(),
IconButton(
icon: Icon(Icons.search),
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (context) => AlgoliaPage()));
},
)
],
),
body: Scrollbar(
child: ListView.builder(
itemCount: dataList.length,
itemBuilder: (context, index) {
final widgetData = dataList[index];
if (widgetData.name == 'Algolia' && Platform.isAndroid) {
return SizedBox();
}
return ListTileCard(
page: AlgoliaSearchIndex.retrieveWidget(widgetData.name),
title: widgetData.name,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: A new Flutter project.
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev

version: 1.7.0+10
version: 1.7.1+11

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 9712f5e

Please sign in to comment.