https://github.com/bizz84/github_search_flutter_client_rxdart_example
Example GitHub Search app built in Flutter & RxDart
https://github.com/bizz84/github_search_flutter_client_rxdart_example
Last synced: about 2 months ago
JSON representation
Example GitHub Search app built in Flutter & RxDart
- Host: GitHub
- URL: https://github.com/bizz84/github_search_flutter_client_rxdart_example
- Owner: bizz84
- License: mit
- Created: 2020-05-04T11:20:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-11T14:53:20.000Z (over 3 years ago)
- Last Synced: 2025-04-26T06:02:29.051Z (5 months ago)
- Language: Dart
- Homepage: https://codewithandrea.com/
- Size: 442 KB
- Stars: 41
- Watchers: 3
- Forks: 25
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Example GitHub Search app built in Flutter & RxDart
Simple app using the Flutter [`SearchDelegate`](https://api.flutter.dev/flutter/material/SearchDelegate-class.html) class to show a list of users matching the input search query:

The app uses `switchMap` & `debounce` from RxDart for a good user experience, without putting too much load on the server, or compromising bandwidth and battery life on the client.
Simple architecture diagram:

- `GitHubSearchAPIWrapper`: pulls the data from the GitHub REST API
- `GitHubSearchResult`: contains the API response data
- `GitHubSearchDelegate`: shows the search UI with a grid of results
- `GitHubSearchService`: holds the logic for wiring up the API wrapper with the UI### Written tutorial here
- [RxDart by example: querying the GitHub Search API with switchMap & debounce](https://codewithandrea.com/videos/2020-05-11-rxdart-by-example-github-search/)
### Credits
This tutorial was heavily inspired by this talk by Brian Egan & Filip Hracek at ReactiveConf 2018:
- [ReactiveConf 2018 - Brian Egan & Filip Hracek: Practical Rx with Flutter](https://youtu.be/7O1UO5rEpRc)
### [LICENSE: MIT](LICENSE.md)