Button component using Flutter in the Dart programming language.

Button component using Flutter in the Dart programming language.

Tiempo de lectura: 2 minutos In this post, we will create a customizable button component in Flutter using the ElevatedButton widget. This component will allow us to create buttons with text, icon, and customize various aspects like color, text size, and button width. import ‘package:flutter/material.dart’; import ‘../util/constantes/Colores.dart’; class Boton extends StatelessWidget { final Color? color; // Ahora es opcional y … Read more

Select Dropdown Options Widget or DropdownButton in Dart using Flutter

Select Dropdown Options Widget or DropdownButton in Dart using Flutter

Tiempo de lectura: < 1 minuto Today we are going to create a custom widget called CustomDropdownButton, which is used to display a DropdownButton with selectable options. The widget accepts three parameters: Widget Usage: To use this widget, simply incorporate it into the widget tree and provide the required parameters as shown below Finally, we visualize the result Returns only the … Read more

Add Google Sign In to Flutter

Add Google Sign In to Flutter

Tiempo de lectura: 3 minutos Today we are going to learn how we can implement Google authentication in our Flutter app. Let’s go to Google Cloud Platform (https://cloud.google.com/) and click on Console Now select our project (if we already have it created by Firebase) or create a new one. Now search for: oauth clients Choose External: Fill in the application … 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 Returns only due to 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=en-419) … Read more

Connect a Flutter Application to a WebSocket

Connect a Flutter Application to a WebSocket

Tiempo de lectura: < 1 minuto Today we are going to learn how we can connect a Flutter APP to a WebSocket quickly and simply. Step 1: Flutter Project Setup flutter create my_app Replace «my_app» with the name you want for your project. We will use the web_socket_channel library: https://pub.dev/packages/web_socket_channel To add the dependency, run: flutter pub add web_socket_channel Run flutter … 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. If you haven’t already, organize your Flutter project so that you have a folder for assets like images and sounds. For example: – … Read more