An Flutter app built using Bloc and Provider that consumes Rapid Api to display the current trending, upcoming, top rated, and popular memes, jokes and more from the programing ecosystem.
Create An account with rapid-api and get your Api Key
Your-api-key=************
-
Bloc - BlocBuilder is a Flutter widget which requires a bloc and a builder function. BlocBuilder handles building the widget in response to new states. BlocBuilder is very similar to StreamBuilder but has a more simple API to reduce the amount of boilerplate code needed. The builder function will potentially be called many times and should be a pure function that returns a widget in response to the state.
-
Provider - A wrapper around InheritedWidget to make them easier to use and more reusable.
- By using provider instead of manually writing InheritedWidget, you get:
- simplified allocation/disposal of resources
- lazy-loading
- a vastly reduced boilerplate over making a new class every time
- devtool friendly – using Provider, the state of your application will be visible in the Flutter devtool
- a common way to consume these InheritedWidgets (See Provider.of/Consumer/Selector)
- increased scalability for classes with a listening mechanism that grows exponentially in complexity (such as ChangeNotifier, which is O(N) for dispatching notifications)
-
Dark Mode - Using providers ChangeNotifierProvider to notify material Ui for changes in the theme.
-
Rapid Api where we are fetching most of our programming memes and jokes from
-
Joke api doesn't require an api key