Differences between StatelessWidget and StatefulWidget in Flutter: Which One to Use?

Differences between StatelessWidget and StatefulWidget in Flutter: Which One to Use?

Tiempo de lectura: 2 minutos Sure, here is the content translated into English in HTML format: html Copy code Reading Time: 2 minutes The fundamental difference between a Stateless widget and a Stateful widget in Flutter lies in their ability to handle and reflect changes in data. Let’s delve into the key differences: StatelessWidget: A Stateless widget is immutable, which … Read more

Install Flutter on Windows 10/11

Install Flutter on Windows 10/11

Tiempo de lectura: 2 minutos html Copy code Reading Time: 3 minutes Hello, today we are going to see how we can install the Flutter environment on Windows. The first thing we need to do is go to the official Flutter website and download the Flutter zip file: https://docs.flutter.dev/get-started/install/windows Once downloaded, unzip it to the desired location. In my case: … Read more

Installing Flutter Environment on Mac

Installing Flutter Environment on Mac

Tiempo de lectura: < 1 minuto Here’s the content translated into English and formatted in HTML: html Copy code Reading Time: < 1 minute Hello, today we are going to install Flutter on Mac. The first thing we need to do is navigate to the folder where we want to install it, for example, Documents. Next, we clone the project using … Read more

Open PDF Blob Base64 (Sent from Server) on Web or Mobile Using Flutter

Open PDF Blob Base64 (Sent from Server) on Web or Mobile Using Flutter

Tiempo de lectura: 2 minutos Reading time: 2 minutes Hello, today we are going to learn how we can open a PDF file sent from a REST API in our Flutter app. The first thing we are going to do is to install the PDF library for mobile in the pubspec.yaml file: flutter_pdfview: ^1.0.0 To install the library, use: flutter … Read more

Retrieve the Platform on Which Our Flutter APP Runs: Web, iOS, Windows, Linux

Retrieve the Platform on Which Our Flutter APP Runs: Web, iOS, Windows, Linux

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Hello, today we are going to check the platform on which we run our Flutter app. To detect if it is Android/iOS/Linux/Windows: We import: import 'dart:io' show Platform; And we can use this if statement to verify the platform: if (Platform.isIOS) { } else if (Platform.isAndroid) { }else if (Platform.isFuchsia) ... Read more

Install Flutter on Mac

Install Flutter on Mac

Tiempo de lectura: 2 minutos Reading time: 2 minutes Hello, today we are going to learn how to install Flutter on Mac. First, open a terminal and create a new folder to install Flutter: mkdir flutter_instalation Next, download the Flutter repository using Git: git clone https://github.com/flutter/flutter.git Create the Flutter variable by running the ‘pwd’ command to see the current directory: … Read more

Execute Flutter platform or application using console commands.

Execute Flutter platform or application using console commands.

Tiempo de lectura: 5 minutos Reading time: < 1 minute Photo by pexels To run a Flutter application on the web, you can follow the steps below. First, open a terminal or command line in the root directory of your Flutter project. Then, execute the following command to enable Flutter’s web functionality: flutter config --enable-web Next, run the following command ... Read more

Adding a POST Request in Flutter (Dart)

Adding a POST Request in Flutter (Dart)

Tiempo de lectura: 4 minutos Reading Time: 2 minutes Hello, today we are going to learn how to make a POST request with Flutter using Dart. With this request, we will be able to make remote calls to our server-side resources using a REST API. We will use the http package to perform the network request. Step 1: Add Dependencies … Read more

Flutter en contenedor Docker Compose para ejecutar en navegador web

Flutter en contenedor Docker Compose para ejecutar en navegador web

Tiempo de lectura: 3 minutos Reading Time: < 1 minute Hello, today we are going to see how we can use Docker Compose to run Flutter in the web browser of the host machine where Docker is running. The first thing we are going to do is create the docker-compose.yml file and add the following content: version: "3.1" services: flutter: ... Read more

Docker Compose Container for Running Flutter on ARM64

Docker Compose Container for Running Flutter on ARM64

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Hello, today we are going to see how we can run the Flutter environment on an ARM64 processor using Docker Compose. First, let’s create a docker-compose.yml: version: "3.1" services: flutter: build: context: ./Dockerfile dockerfile: flutter_arm restart: unless-stopped container_name: flutter volumes: - ./app_path:/home/mobiledevops/app networks: - docker-network networks: docker-network: driver: bridge external: ... Read more