Skip to content

A flutter project for the novels and quotes of Franz Kafka - clean architecture- mobile - web - responsive - cubit- provider- hive-dio

License

Notifications You must be signed in to change notification settings

mo7amedaliEbaid/kafka

Repository files navigation

kafka

A flutter Multi Platform project for the novels and quotes of 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

 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.

Web Demo

Visit Website from here Web_Demo

Download Apk

Demo Video

Screenshots.

Fore more screen shots Here

creating book_model.g.dart

creating quote_model.g.dart

Widget Tree.

mobile

Portrait.

Landscape.

Linux

web