Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/)

## Download Apk

## Demo Video

## 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