Configuración
Metod: POST URL: https://fcm.googleapis.com/fcm/send
Body:
{
"to" : "Token del cliente",
"notification" : {
"body" : "Body of Your Notification",
import 'package:flutter/material.dart'; | |
class CustomProductField extends StatelessWidget { | |
final bool isTopField; // La idea es que tenga bordes redondeados arriba | |
final bool isBottomField; // La idea es que tenga bordes redondeados abajo | |
final String? label; | |
final String? hint; | |
final String? errorMessage; |
import 'package:formz/formz.dart'; | |
// Define input validation errors | |
enum EmailError { empty, format } | |
// Extend FormzInput and provide the input type and error type. | |
class Email extends FormzInput<String, EmailError> { | |
static final RegExp emailRegExp = RegExp( | |
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$', |
Metod: POST URL: https://fcm.googleapis.com/fcm/send
Body:
{
"to" : "Token del cliente",
"notification" : {
"body" : "Body of Your Notification",
final emailRegExp = RegExp( | |
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$', | |
); |
Descargar las hojas de atajos recomendadas:
export const firstNameAndLastnamePattern: string = '([a-zA-Z]+) ([a-zA-Z]+)'; | |
export const emailPattern: string = "^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"; |
<h2>Reactivos: Básicos</h2> | |
<hr> | |
<div class="row"> | |
<div class="col"> | |
<form autocomplete="off"> | |
<!-- Campo de producto --> | |
<div class="mb-3 row"> |
{ | |
"users": [ | |
{ | |
"id": 1, | |
"usuario": "John Doe", | |
"email": "john.due@gmail.com" | |
} | |
], | |
"heroes": [ | |
{ |
Descargar esta hoja de atajos: Guías de atajos - Angular