How does the const constructor actually work?

Posted by Rohit Kumar | Updated on | Dart


How does the const constructor actually work? Very well explained in detail but for the users who are actually looking for the usage of a const constructor.

Flutter BLoC: Is using nested StreamBuilders a bad practice?

Posted by Rohit Kumar | Updated on | Flutter


Flutter BLoC: Is using nested StreamBuilders a bad practice. You cannot do otherwise using widgets. That’s one of the limitations of the widget system: things tend to get pretty nested There’s one solution though: Hooks, …

Padding inside Expanded

Posted by Rohit Kumar | Updated on | Flutter


Padding inside Expanded. This is how padding is done with Expanded widget in flutter.

How to keep the state of my widgets after scrolling?

Posted by Rohit Kumar | Updated on | Flutter


If you want to keep the state of my widgets after scrolling? You have to store the state (favorite or not) in a parent widget. The ListView.builder widget creates and destroys items on demand, and …

How to use a provider inside of another provider in flutter?

Posted by Rohit Kumar | Updated on | Flutter


If you want to use a provider inside of another provider in flutter?In the main.dart file I now use ChangeNotifierProxyProvider instead of ChangeNotifierProvider for the dependig provider: Now the Messages provider will be rebuilt when …

Where to save GoogleService-Info.plist in Flutter without Xcode?

Posted by Rohit Kumar | Updated on | Flutter


Where to save GoogleService-Info.plist in Flutter without Xcode? Somewhere along the line, AppUploader must be using XCode to build an iOS app from your code. While I don’t know how they do that (their documentation …

Widget not going to bottom of screen in Flutter?

Posted by Rohit Kumar | Updated on | Flutter


Widget not going to bottom of screen in Flutter. You will solve using Expanded widget.

How shouldChangeCharactersInRange works in Swift?

Posted by Rohit Kumar | Updated on | Swift


If you want to know shouldChangeCharactersInRange works in Swift? Use the following example code:

How to load local html into UIWebView using swift?

Posted by Rohit Kumar | Updated on | Swift


Want to load local html into UIWebView using swift? Use the below example code to load local html into UIWebView using swift.

How to convert NSDate to String in iOS Swift?

Posted by Rohit Kumar | Updated on | Swift


Want to convert NSDate to String in iOS Swift? You get the detail information from Apple Dateformatter Document.If you want to set the dateformat for your dateString, see this link , the detail dateformat you …

Exponentiation operator in Swift

Posted by Rohit Kumar | Updated on | Swift


Exponentiation operator in Swift. There isn’t an operator but you can use the pow function like this: If you want to, you could also make an operator call the pow function like this:

How to use user-agent in webview-flutter Flutter?

Posted by Rohit Kumar | Updated on | Flutter


Want to use user-agent in webview-flutter Flutter? You can use my plugin flutter_inappwebview, which is a Flutter plugin that allows you to add inline WebViews or open an in-app browser window and has a lot …

Flutter Combine Multiple FireStore Streams With Rxdart

Posted by Rohit Kumar | Updated on | Flutter


Flutter Combine Multiple FireStore Streams With Rxdart. Use the following example code to combine Multiple FireStore Streams With Rxdart.

Flutter Sort Drag and Drop between multiple lists or columns

Posted by Rohit Kumar | Updated on | Flutter


Flutter Sort Drag and Drop between multiple lists or columns. I use boardview flutter plugin.

How can do float Text Widget around an Image Widget in Flutter

Posted by Rohit Kumar | Updated on | Flutter


In this example, I will share how can do float Text Widget around an Image Widget in Flutter. You could use drop_cap_text library to get this behavior. Usage is something like this: