Tag Archives: Flutter
Flutter vs. React Native: Unraveling the Performance Battle
Introduction: When it comes to developing cross-platform mobile applications, Flutter and React Native have emerged as the two dominant frameworks. As developers seek to create high-performing apps, it’s crucial to understand the performance capabilities of each framework. In this article, we will delve into the performance aspects of Flutter and React Native, examining their strengths and weaknesses to… Read More »
Different ways of making rounded corner images in flutter
Example 1: ClipRRect dartCopy codeClipRRect( borderRadius: BorderRadius.circular(10.0), child: Image.asset(‘assets/images/image.jpg’), ) In this example, the ClipRRect widget is used to clip the child Image with rounded corners. The borderRadius property defines the radius of the corners. Example 2: BoxDecoration dartCopy codeContainer( decoration: BoxDecoration( borderRadius: BorderRadius.circular(10.0), image: DecorationImage( image: AssetImage(‘assets/images/image.jpg’), fit: BoxFit.cover, ), ), ) Here, a Container is used… Read More »
10 Best Flutter Packages to use in your app
Problem Solving – IP addresses must follow the format A.B.C.D, where A, B, C, and D are numbers between 0 and 255.
Given a string of digits, generate all possible valid IP address combinations. IP addresses must follow the format A.B.C.D, where A, B, C, and D are numbers between 0 and 255. Zero-prefixed numbers, such as 01 and 065, are not allowed, except for 0 itself. For example, given “2542540123”, you should return [‘254.25.40.123’, ‘254.254.0.123’]. To generate all possible… Read More »
Custom Theme using Theme Extensions
Theme extensions were introduced in Flutter 3. But what are Theme Extensions? As the name says, it helps to extend the inbuilt themes with our own extensions. Let’s jump into an example So when you create a flutter app, your basic root widget will look like this return MaterialApp( title: ‘Flutter Theme Extensions’, theme: ThemeData( primarySwatch: Colors.blue, ),… Read More »
Flutter Best Practices — Part 2
1. Avoid Functional Widgets We usually have a situation where we need to separate out UI code from the widget, But we avoid creating a separate widget and use function which returns Widget. This practice have some benefits, like you don’t need to pass all parameters in your new widget, You have less code and less files. But this approach… Read More »
Flutter Best Practices — Part 1
1. Placeholder Widgets Use SizedBox instead of Container as Placeholder widgets. Take a look at the below use-case return _loaded ? Container() : YourWidget(); The SizedBox is a const constructor and creates a fixed-size box. The width and height parameters can be null to indicate that the size of the box should not be constrained in the corresponding dimension. Hence, when we… Read More »
Debugging Network Calls in Flutter with Alice
In this article I am showing a useful plugin to debug network calls in Flutter. Alice! You can find the alice package here. Alice is an HTTP Inspector tool for Flutter which helps debugging http requests. It catches and stores http requests and responses, which can be viewed via simple UI. It is simple to integrate! First add… Read More »
Chat Application in Flutter Using Socket IO
In this article we will see how we can create a chat application in flutter using Socket IO node js server. For this we need to have a server installed with Node js Socket IO and related dependencies So let’ start with Flutter. Here we need three screens Login screen Chat Users List screen Chat Screen. Login Screen… Read More »
Custom BottomSheet, Custom Snackbar in Flutter using FlushBox
In this article we will see how to use a nice plugin called FlushBox in Flutter. Watch Video Tutorial First thing to do is to add dependencies. Add Dependencies Go to your pubspec.yaml file and add the below dependency. Once done that run ‘flutter packages get’ in the terminal to download the packages to be used by your… Read More »
Bar Charts in Flutter
Hi, In this article, we will see how to draw bar charts in flutter. Watch Video Tutorial To draw charts in flutter, we need to add a dependency. So open your pubspec.yaml file and add the below dependency below dependencies. Dependencies After that run ‘flutter packages get’ to add the package. Once the plugin is installed, import it… Read More »
Flutter DataTable + MySQL
In this demo we will create a flutter app that communicates with the Server and create a table, insert records, update records, fetch all records and delete records. The Data from the Server will be displayed in a DataTable. Watch Video Tutorial Here I am using XAMPP to create a local Server. You can download XAMPP from here.… Read More »
Expanded/ Multi-Level List in Flutter for Android and iOS
Here is a simple example for creating expanded list in flutter. Watch Video Tutorial We will create a new class named “Entry” which will be the data on each row of the list. Data Source Let’s create the array to be shown in the expanded list. Create Row Widget Create the List That’s it. Complete code
Custom Splash Screen in Flutter for Android and iOS.
Lets start with iOS Watch Video Tutorial iOS Go to the flutter project folder and open the iOS folder. You will see the runner.xcodeworkspace file. Open the file in Xcode. Now if you select the root folder and select the target and go the General Tab, Here just towards the bottom you will see an option to set… Read More »
Firebase Storage – Uploading and Downloading files & Multi File Picker in Flutter
Watch Video Tutorial This demo shows how to upload files to firebase Storage. For this demo we will upload only images to firebase Storage. Also I am doing any sign in to Google, this is completely anonymous. Let’s start… Add Dependencies we need three plugins for this example #1 Multiple File Picker This plugins helps us… Read More »
Using Gradient in Flutter
Here is a simple example of using Gradient in Flutter. Here we are just showing a demo of how to use LinearGradient in Flutter. You can even use the RadialGradient or SweepGradient in the similar way. Watch Video Tutorial Here is the complete example of setting a LinearGradient in a Container. Please leave your valuable comments below.
Stepper Widgets in Flutter
Hello, Stepper is an awesome widget in Flutter. It makes developers job easy by writing less code. Here we will have a UI as shown in the below screenshot. First we will create a list of 3 Steps. Each Step will have a ‘title‘, ‘content‘ and isActive property. ‘content‘ can be any Widget. To… Read More »
Complex JSON Parsing in Flutter / Dart
Hi This article helps you to do complex Json Parsing in Flutter or dart. Watch Video Tutorial Simple JSON I have the following json in a file named “person.json” in a folder named “json” in root of my project. To parse this json, we will create a model class named “Person”. The “fromJson” method creates a “Person” object… Read More »
Flutter Tutorials – Animated Container – Animate a widget in Flutter
Article shows how to use Animated Containers in Flutter. AnimatedContainer are used for Implicit animations in Flutter. Here we will be investigating AnimatedContainer, AnimatedCrossFade and AnimatedOpacity. Watch Video Tutorial AnimatedContainer This by default uses Linear Interpolation to transition to the new values. Specify the duration to AnimatedCrossFade Here we will animate between two images,… Read More »
Flutter Tutorial – Shared Preferences (Android and iOS)
This article shows how to implement Shared Preferences in Flutter. Watch Video Tutorial Add Dependency We will be using the shared_preferences plugin from Flutter to implement this. You can go to this link and read more about it. Go to your pubspec.yaml file and add the dependency. Import plugins … Read More »
Flutter Tutorials – DataTable (Android & iOS).
DataTable is a really useful widget in Flutter. Today we will look into how we can use that to create beautiful apps in Flutter for Android and iOS. Watch Demo Below is the demo of the app we are going to make. Watch Video Tutorial The video tutorial demonstrates all the functions… Read More »
Efficient use of Widgets in Flutter Container – Tip
I am going to show how to efficiently make use of widgets in Flutter. This is a simple example of how to work with widgets in Flutter. Here we will be creating two widgets that looks similar, but let’s see how many hierarchies or levels of widgets are needed to create such a widget. Watch Video… Read More »
Flutter Tutorials – AutoComplete TextField
Hi, Today, I will show you how you can implement AutoComplete TextField in Flutter. Watch Demo Watch Video Tutorial Add Library You can get the Flutter AutoCompleteTextField Library from below link https://pub.dartlang.org/packages/autocomplete_textfield Get the package name and add it in the pubspec.yaml file add the dependency. We will also add the http… Read More »
- 1
- 2