Storing Custom Class Objects in Hive

⚠️ This post is intended for people who have just Started using Hive Db. Hive is a NoSql Database. According to Documentation, Hive is a lightweight and blazing fast key-value database written in pure Dart`. It’s not just words, It is pretty fast. When we first setup, Hive is only able to store Dart primitive datatypes. It means, we can only store String,int,bool etc. in Hive Database....

March 17, 2021 · 3 min · Muhammed Mukhthar CM

Flutter Web Quickstart

Flutter Engage was an Awesome Event. It bringed us lot of News, but particularly interesting ones were the availablity of All 6 Platforms on Stable Channel. While I don’t thing All of those are production ready, It’s still amazing to see the ability to build to 6 platform from 1 Codebase. I had tried all of them except the one’s in the Apple Ecosystem even before that. The cause of me not trying macOs or ios was the fact that I don’t own any of those 😆....

March 16, 2021 · 3 min · Muhammed Mukhthar CM

Ternary operator in Dart

Ternary Conditional Operators are a pretty useful thing in Dart. They can be used to conditionally show a Flutter widget. They accept 2 operands. If the given condition is true, the first thing will be executed and if it is false, it will execute the second one. Example in Dart code. void main() { bool isComplete = false; print(isComplete ? "completed!" : "not Completed"); } //Outputs not Completed This will print not completed....

March 15, 2021 · 3 min · Muhammed Mukhthar CM

Create Apps using Blogger API in Flutter

I remember using blogger for starting my First Blog. For sure that was one of my First personal spaces on Internet. You May have noticed that I am currently using Hugo for generating my Website. And a fantastic open source theme named hugo-PaperMod created by adityatelange. I use hugo because it’s a fantastic platform. Themes like these make life easier for persons like me, who don’t know much of Web dev....

March 14, 2021 · 3 min · Muhammed Mukhthar CM

Image with Rounded corners in Flutter

Recently I was trying to build a Card with rounded corners in Flutter. Inside it, there was an Image. Just Like this. My first attempt was to put our Image inside a container with a radius. So did I, and the result was not satisfying. Container( height: 200, width: 350, decoration: (BoxDecoration( borderRadius: BorderRadius.circular(45), )), child: Image( fit: BoxFit.cover, image: NetworkImage( 'https://images.unsplash.com/photo-1526749837599-b4eba9fd855e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80'), ), ) The above Code gave me this....

November 25, 2020 · 1 min · Muhammed Mukhthar CM