Skip to content

Instantly share code, notes, and snippets.

Avatar
📓

Fernando Klerith

📓
View GitHub Profile
@Klerith
Klerith / custom_product_field.dart
Created March 22, 2023 19:35
Pantalla de Producto y Custom Product Field
View custom_product_field.dart
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;
@Klerith
Klerith / email.dart
Created March 18, 2023 14:15
Flutter - Formz Inputs
View email.dart
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}$',
@Klerith
Klerith / fcm-simple.md
Created March 8, 2023 20:09
FCM - No recomendado - Envío de Push
View fcm-simple.md
@Klerith
Klerith / email_regexp.dart
Created March 3, 2023 20:50
Flutter / Dart - Email RegExp
View email_regexp.dart
final emailRegExp = RegExp(
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$',
);
@Klerith
Klerith / flutter-instalaciones.md
Last active March 17, 2023 19:02
Instalaciones del curso de Flutter - Móvil de cero a experto
View flutter-instalaciones.md
View validators-patterns.ts
export const firstNameAndLastnamePattern: string = '([a-zA-Z]+) ([a-zA-Z]+)';
export const emailPattern: string = "^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$";
@Klerith
Klerith / basic.html
Last active January 23, 2023 17:44
Páginas que usaremos en la sección de Formularios Reactivos
View basic.html
<h2>Reactivos: Básicos</h2>
<hr>
<div class="row">
<div class="col">
<form autocomplete="off">
<!-- Campo de producto -->
<div class="mb-3 row">
@Klerith
Klerith / db.json
Created January 18, 2023 20:07
Base de datos para el JSON Server
View db.json
{
"users": [
{
"id": 1,
"usuario": "John Doe",
"email": "john.due@gmail.com"
}
],
"heroes": [
{
@Klerith
Klerith / rings.svg
Created January 9, 2023 19:28
Loader SVG
View rings.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Klerith
Klerith / instalaciones.md
Last active March 14, 2023 10:44
Instalaciones recomendadas - Curso de Angular de cero a experto
View instalaciones.md