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

Adding Images to Flutter Project

Adding Images to Flutter Project

Tiempo de lectura: 5 minutos Today we’re going to learn how to add images within a Flutter project. Let’s assume we already have our Flutter project set up: 1. Creating Folder Structure: First, make sure you have the folder structure set up with the assets folder. If you don’t already have it, create a folder named assets in the root … Read more

Create Checkbox Options in Flutter with Dart

Create Checkbox Options in Flutter with Dart

Tiempo de lectura: < 1 minuto Photo by JÉSHOOTS In this example, I’m going to show you how to create a set of checkbox options in Flutter using the Dart programming language. To do this, we’ll create a component that we’ll call CheckboxGroup. This component will have its properties and events to handle the selection of options, allowing us to use … Read more

Create an option select in Flutter with Dart

Create an option select in Flutter with Dart

Tiempo de lectura: 2 minutos Photo by JÉSHOOTS In this example, I’m going to show you how to create a select dropdown in Flutter using the Dart programming language. To do this, we’ll create a component that we’ll call CustomSelect. This element or component will have its properties and events to handle option selection, allowing us to use it in … Read more

Create a terms of use acceptance widget with Flutter

Create a terms of use acceptance widget with Flutter

Tiempo de lectura: 2 minutos Today we are going to learn how to create a Widget that allows us to accept the terms of use of the system before registering on the platform. The first thing we are going to do is create this widget, which we will call condiciones_uso.dart import ‘package:flutter/material.dart’; class CondicionesUso extends StatefulWidget { CondicionesUso ({Key? key}) … Read more