Posts

Showing posts from 2022

Flutter Security Essentials

It's almost asked to me thrice in recent interviews. Usually I explained about local authentication, prevent screenshots and flutter secure storage. But it has more than that. Yes, Flutter is completely new. Securing native apps would be more comfortable to do. But actual things, you can do more that in flutter. We can see that step by step. 1. Flutter Secure Storage Securing Data is very important. Using key value pair, you can achieve it. It's similar like shared_preference, but it can encrypt and decrypt data.  2. Obfuscate code For android, usually will do these stuff in ProGuard.  In app.gradle: android { ... buildTypes { release { signingConfig signingConfigs.release minifyEnabled true useProguard true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } i n /android/app/proguard-rules.pro: # Flutter -keep class io.flutter.app.** { *; } -keep class io.flutter.plugin.**  { *; } -keep

Flutter bloc + Flutter 3

 Hey friends, last saturday I tried to read out new stuffs in flutter 3 and flutter bloc architecture. So I tried something with this. Using the bloc architecture, I created an one simple api test app. Hope It's interesting and useful, when someone is trying to apply the new changes on bloc architecture. Because there is no mapToEvent in new bloc.  Here is the example . Try out. 

Interesting open source apis

 Hey guys, today I saw this page, It would be very interesting. And those who want to try out the free and open source api's, you can try this out. Myself, I found lot of interesting stuffs in the free api list. Example random fact and vadivelu http error codes are extremely awesome. Here is a link . Try out.

Adding header and footer in recycler view.

 Hey guys, have a happy sunday. Actually sunday finished. So let's celebrate the monday.  It's been very long days to written blog in android. Now It's a time. Because in between my flutter days, android also improved a lot. How to add the header and footer in recyclerview? Use ConcatAdapter to do that. binding.listUser.adapter = ConcatAdapter(UserHeaderAdapter(context, data), UserAdapter(context, data), UserFooterAdapter(context, data))

Dependencies vs Dev Dependencies in Flutter

 Hey friends, good noon. Rainfall on summer here, It's unusual. Let's see the difference between dependencies and dev dependencies in flutter. Dependencies: Included in your app during compilation.  Dev Dependencies: Can use on while developing the app on development stage. Like testing. Doesn't include any inside the apk. When your add the dev dependencies in pubspec.yaml, It won't show the auto complete on your android studio. you have type the whole package yourself. 

Let's start again..

Hello friends , It's been more than a year without any post. Sorry for that, heavy busy and not single any more. so now I kickstart my active routine again. So let's play.. So I spent more than 2 years in flutter development, learning a lot of concepts and new stuff. Now we see some little spark on that.  LocalAuth It's a local authentication library and we can use it in both android and iOS platforms. Fingerprint biometrics, PIN, Pattern and face unlock works well. As far as I know, It's perfectly fine on iOS. but on android it's a little bit laggy on when I change the state anyhow. It's cool. IntroSlider Flutter Intro Slider is a flutter plugin that helps you make a cool intro for your app. Creating an intro has never been easier and faster. It's a good library which I tried recently.