Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mo7amedaliebaid/kafka
A flutter project for the novels and quotes of Franz Kafka - clean architecture- mobile - web - responsive - cubit- provider- hive-dio
https://github.com/mo7amedaliebaid/kafka
bloc books-app books-website clean-architecture cubit dart dio flutter flutter-app flutter-linux flutter-web hive provider quotes-api responsive-design themeswitch
Last synced: 5 days ago
JSON representation
A flutter project for the novels and quotes of Franz Kafka - clean architecture- mobile - web - responsive - cubit- provider- hive-dio
- Host: GitHub
- URL: https://github.com/mo7amedaliebaid/kafka
- Owner: mo7amedaliEbaid
- License: mit
- Created: 2023-10-12T06:47:36.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-17T04:55:05.000Z (about 1 year ago)
- Last Synced: 2023-11-17T05:53:57.477Z (about 1 year ago)
- Topics: bloc, books-app, books-website, clean-architecture, cubit, dart, dio, flutter, flutter-app, flutter-linux, flutter-web, hive, provider, quotes-api, responsive-design, themeswitch
- Language: Dart
- Homepage: https://e-branch-804fb.web.app/
- Size: 36.5 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# kafka
A flutter Multi Platform project for the novels and quotes of [Franz_Kafka](https://en.wikipedia.org/wiki/Franz_Kafka)
- Multi Platform (Mobile `Android`,`Ios`, Tablet, Web, Desktop `Linux`)
- Multiple themes
- Responsive Design (Portrait, Landscape, Tablet, Desktop)
- Clean Architecture
- Books Api => Dio
- Quotes Api => Dio
- Data Caching => Hive
- Cubits
- Providers
- Books View
- Quotes View
- Loading Shimmer
- Details Screen
- Firebase hosting## Remarks
- For the books api [Here](https://developers.google.com/books/docs/v1/using) It doesn't require an api key just put https://www.googleapis.com/books/v1/volumes?q=inauthor:"Franz+Kafka"&maxResults=40 in dio get method and you can change the author name or search books by any keyword.
```dart
final response = await dio.get(
'https://www.googleapis.com/books/v1/volumes?q=inauthor:"Franz+Kafka"&maxResults=40',
);
```
- For the quotes api [Here](https://rapidapi.com/skjaldbaka17/api/quotel-quotes) the `api key` is required in this case you can get your key from [Rapid_Api](https://rapidapi.com/hub). You can change the post request body as it suits your usage.
```dart
final response = await dio.post(
'https://quotel-quotes.p.rapidapi.com/search',
data: {
"pageSize": 25,
"page": 0,
"searchString": 'Franz Kafka'
},
options: Options(
headers: {
'content-type': 'application/json',
'X-RapidAPI-Key': MyQuotesApiKey, // Api key is required get it from https://rapidapi.com/skjaldbaka17/api/quotel-quotes
'X-RapidAPI-Host': 'quotel-quotes.p.rapidapi.com'
},
)
);
```
- Run flutter pub run build_runner build command in your terminal to generate book_model.g and quote_model.g
- Run flutter build web --web-renderer html --release in your terminal instead of flutter build web if you have problems in web release.
- for testing your web release you can use firebase hosting it's free.## Web Demo
Visit Website from here [Web_Demo](https://e-branch-804fb.web.app/)## Screenshots.
Fore more screen shots [Here](https://github.com/mo7amedaliEbaid/kafka/blob/4f278889f1c58f663ce8c4021d4df28c35986157/screenshots)#### creating book_model.g.dart
#### creating quote_model.g.dart
#### Widget Tree.
### mobile
#### Portrait.
#### Landscape.
## Linux
## web