Skip to content

rkBekzat/Chuck-Norris-Jokes

Repository files navigation

Flutter course, assignment 1

Chuck Norris jokes

Table content

Description

This is the Flutter application which show image of the Chunk Norris and his joke. The app based on tinder appliction idea where you can swipe to left if like and to right if it's not interesting, also in bottom align two buttons like and dislike. In appbar I align the buttons which show dialog and information about me.


Updates

Implemented bottom navigation bar, where have two pages. First page is main page where show Chuck Norris jokes, this jokes was fetched using api. Second page show list of liked jokes. In liked pages you can also delete liked jokes by swipe.

When you click on the appbar button language the app translate static words to russian languages, and clicking again app switch to the enlish language.

Images

Jokes Categories dialog Liked jokes App icon
Scrolling page dailog

Library

  • http - This library used to fetch quotes from this site
  • json_serializable - This library used to serialize JSON data into a model object.
  • flutter_lints - This library detect warnings and report them to the user.
  • build_runner - This library used to generate Joke.g.dart file.
  • hive - This library used to store data in local storage.
  • flutter_bloc - This library is used to split UI and logic of application
  • easy_localization - This library is used to locolize text in local language

Architecture and state management

I used bloc state management and my architecture based on the following repository. To store constants I referenced to this.

APK

release-apk