Crear un widget que pueda contener a otros widgets (ejemplo de custom card) con Flutter

Crear un widget que pueda contener a otros widgets (ejemplo de custom card) con Flutter

Tiempo de lectura: 1 minuto Today we are going to learn how to create a Widget that can contain other Widgets and be used as a background in Flutter. The first thing we are going to do is create our Widget which we will call CustomCard.dart It contains this code: import ‘package:flutter/material.dart’; class CustomCard extends StatelessWidget { final Widget? child; … Read more

Set Up Google Firebase in Flutter Project

Set Up Google Firebase in Flutter Project

Tiempo de lectura: 5 minutos Today we are going to learn how we can set up Google Firebase in a Flutter project. The first thing we need to do is create our Firebase project, for that we go to https://firebase.google.com/ And click on Go to Console: Choose Add Project Choose a name for the APP. We can choose whether we … Read more

Adding APP title in different languages for Android / iOS using Flutter

Adding APP title in different languages for Android / iOS using Flutter

Tiempo de lectura: 2 minutos Today we are going to learn how we can set the title of our APP in different languages using Flutter. For Android The first thing we need to do is go to the title of our APP, which is located inside android\app\src\main\AndroidManifest.xml <application android:label=”app_name” Now let’s create a variable that will allow us to change … Read more

Fixing error: Building with plugins requires symlink support. Please enable Developer Mode in your system settings. In Flutter build.

Fixing error: Building with plugins requires symlink support. Please enable Developer Mode in your system settings. In Flutter build.

Tiempo de lectura: < 1 minuto If you encounter the following error message when using the command: flutter build apk or the command: flutter build appbundle It’s due to the lack of support for symbolic links (symlink) on your system. This problem can arise on operating systems that do not have developer support enabled or when Flutter cannot create symbolic links … Read more

Add Ad Consent Message for European Users – AdMob GDPR with Flutter

Add Ad Consent Message for European Users – AdMob GDPR with Flutter

Tiempo de lectura: 2 minutos Today we are going to learn how to implement the mandatory consent message from Google AdMob, which will be requested from European users by the GDPR or GPDR law or Data Protection who want to view the ads of the APP with AdMob. We are going to use the official AdMob package for Flutter (https://developers.google.com/admob/flutter/eu-consent?hl=es-419) … Read more

Connect a Flutter Application to a WebSocket

Connect a Flutter Application to a WebSocket

Tiempo de lectura: 2 minutos Today we are going to learn how we can connect a Flutter APP to a WebSocket quickly and simply. Step 1: Flutter Project Setup Create a new Flutter project using the following command in your terminal: flutter create my_app Replace “my_app” with the name you want for your project. We will use the web_socket_channel library: … Read more

Adding Audio or Sounds in Flutter

Adding Audio or Sounds in Flutter

Tiempo de lectura: 2 minutos To add audio or sounds in Flutter, we’ll use the audioplayers library. First, we install it: flutter pub add audioplayers Then, run flutter pub get in your terminal to install the dependency. Organize Project Structure If you haven’t already, organize your Flutter project so that you have a folder for assets like images and sounds. … Read more

How to Get Current Location (Latitude and Longitude) in Flutter

How to Get Current Location (Latitude and Longitude) in Flutter

Tiempo de lectura: 2 minutos   To quickly and easily get the current location, follow these steps: First, make sure you have added the geolocator dependency in the pubspec.yaml file: geolocator: ^7.0.3 Then, run flutter pub get to install the dependency. Next, add the necessary permissions in the AndroidManifest.xml file: <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” /> <uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” /> Then implement the following … Read more

Generate a release APK/AAB (for publishing) with Flutter and Visual Studio Code

Generate a release APK/AAB (for publishing) with Flutter and Visual Studio Code

Tiempo de lectura: 2 minutos Today we are going to learn how we can generate an APK or AAB to distribute or publish our application to the app store using Flutter and VS Code. We have to create an application signing file with the following command: keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload Indicate … Read more