Posts

Showing posts from March, 2023

Flutter Bloc - Clean Architecture

Hey friends, Have a good day. Few days back, I got an interview and assign this task. Anyhow I done my best.  I post my code in github, If anyone wants to try the bloc with clean architecture you can look it that my code. This is following task: I should be able to list all albums and see their title I should be able to filter albums by title I should be able to see the photos of one specific album I should see the thumbnail(thumbnailUrl) and title Here I use bloc for state management. After a long gap, I used and updated the latest version of bloc. Then for api consuming I used jsonplacedholder site. For http calls: Dio and Retrofit I used.  Here is link .  If you want something more features in this repo, please comment here. 

FVM - Flutter Version Management

Hey friends, Good day. It's around morning 2.00 AM. Sleeplessness, So I just jump into my hobby. Today we gonna see the fvm(Flutter Version Management).  See I'm working in three different projects, first one requires flutter stable 2.3.3, second project requires 2.7.0 and third project requires latest version of flutter. Due to stability, client doesn't want to break anything in code. So in this situation. I have a only one hardware resource, In the system currently we can't setup more than one SDK(you can do, but it's really harder to do).  Really I don't like to setup the project in another system. In this situation, we gonna start using flutter FVM.  It's an open source and have a very good documentation to made setup easier in windows and mac OS.  Setup Documentation It's very simple, in all your cli commands with flutter and dart. you should add fvm at begging. ex: fvm use 2.3.4 We can in different channels of flutter SDK using the fvm. So there wo

Flutter Getx

It's a time for knowing getx. Let's go.  Getx GetX is  a fast, stable, and light state management library  in flutter. There are so many State Management libraries in flutter like MobX, BLoC, Redux, Provider, etc. GetX is also a powerful micro framework and using this, we can manage states, make routing, and can perform dependency injection. Three Principles of GetX: Performance:  GetX mainly focuses on better performance and minimum usage of resources, so in my humble opinion, it’s the best among other state management techniques. Productivity:  GetX has easy-to-remember syntax besides its top-notch performance. It saves a lot of time for the developers and increases the speed of the app by reducing the usage of resources. Organization:  GetX allows us to do away with business logic on views and separate dependency injection and navigation from the UI. You don’t require the context to navigate between screens. You don’t need to inject your controllers/models/blocs classes into