A flutter Multi Platform project for the novels and quotes of Franz_Kafka
- Multi Platform (Mobile
Android
,Ios
, Tablet, Web, DesktopLinux
) - 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
- For the books api Here 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.
final response = await dio.get(
'https://www.googleapis.com/books/v1/volumes?q=inauthor:"Franz+Kafka"&maxResults=40',
);
- For the quotes api Here the
api key
is required in this case you can get your key from Rapid_Api. You can change the post request body as it suits your usage.
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.
Visit Website from here Web_Demo
Fore more screen shots Here