Sending geocoding requests from the Laravel backend instead of directly from Flutter has several advantages and potential reasons: Reasons to Use Laravel Backend for Geocoding Requests Sending Geocoding Requests Directly from Flutter While there are advantages to sending requests from the backend, it is technically possible to send geocoding requests directly from Flutter. Here are…
Category: Flutter
Fixing setState() Error During Build in Flutter: Using addPostFrameCallback for Safe State Updates
The addPostFrameCallback method solves the problem because it schedules the callback to be executed after the current frame has been rendered. Here’s a detailed explanation of why this approach works: Understanding the Error The error message Unhandled Exception: setState() or markNeedsBuild() called during build indicates that setState() was called during the widget’s build phase. This…
Creating a Custom Scrollable App Bar With Expandable Text | Flutter
In this article, we will create a custom scrollable app bar with a background image in Flutter. The app bar will shrink as the user scrolls up, and it will include a back button. Below the image, we will display some descriptive text with a “More” or “Less” button to show or hide additional text….
In Depth Explanation for SliverGridDelegateWithFixedCrossAxisCount
Explanation This code will display your hotels in a grid layout with 2 columns. You can adjust the crossAxisCount, crossAxisSpacing, mainAxisSpacing, and childAspectRatio properties to customize the grid’s appearance. The SliverGridDelegateWithFixedCrossAxisCount is a delegate for GridView that helps create a layout with a fixed number of columns across the horizontal axis. It provides control over…
Why iOS developers are not getting jobs
I would think that, iOS developers are now needed in fine tuning apps like highly fine tech or specialized for optimization like big finance app and scientific apps for research. I also think iOS developers are only needed when you need to control every of bit pixels and extremely fast speed. Other than that Flutter…
How to remove extra space between Tabs in Flutter
Extra space between Tabs in flutter created by default space in Tabs. It’s easy to remove. Look at the code below The above code has labelPadding: EdgeInsets.zero which removes extra space or padding between tabs in Flutter You see the explore tab is nice
Open and close drawer menu from other page
Here we will see how to open and close drawer from nested menu flutter. You will learn how to do the below We will see how to achieve the above effect. Put the above code somewhere in your code, but you need to change the color based on your requirement. At the same time, you…
Flutter SliverAppBar Remove Back Button
Let’s see how to remove back button from SliverAppBar in Flutter. Make sure you are using SliverAppBar using CustomScrollView. See the picture below and add the code Copy paste and it would work.
Beautify Android Studio With Plugin
My android studio looks like below It’s beautiful screen and very readable. To make your Android studio beautiful like me, you the below plugins for your Android studio
Flutter Pass Function as Parameter
Here we will a function as parameter in Flutter to another function or widget. To pass a function, first of course you need to write your function. Actually you need two things to do You may write the function anywhere inside the StatefulWidget class. And then you should also write a class or widget that…