Skip to content

Instantly share code, notes, and snippets.

View ricardogottheil's full-sized avatar
🎯
Focusing

Ricardo Gottheil ricardogottheil

🎯
Focusing
View GitHub Profile
@ricardogottheil
ricardogottheil / main.dart
Created April 24, 2024 01:22
Ejemplo 6 - Incorporación de Animaciones Personalizadas - BottomNavigationBar
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@ricardogottheil
ricardogottheil / main.dart
Last active April 24, 2024 01:17
Ejemplo 5 - Diseño Adaptativo para Tablets y Teléfonos - BottomNavigationBar
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@ricardogottheil
ricardogottheil / main.dart
Created April 24, 2024 01:00
Ejemplo 4 - Integración con Páginas Dinámicas - BottomNavigationBar
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@ricardogottheil
ricardogottheil / main.dart
Created April 24, 2024 00:54
Ejemplo 3 - Añadiendo Funcionalidad con Badges - BottomNavigationBar
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@ricardogottheil
ricardogottheil / main.dart
Created April 24, 2024 00:45
Ejemplo 2 - Personalización de Colores y Estilos - BottomNavigationBar
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@ricardogottheil
ricardogottheil / main.dart
Created April 24, 2024 00:16
Ejemplo 1 - Configuración Básica - BottomNavigationBar
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@ricardogottheil
ricardogottheil / main.dart
Created April 19, 2024 20:46
[BottomNavigationBar] Ejemplo 1: Configuración Básica
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@ricardogottheil
ricardogottheil / custom-notifications.tsx
Created September 6, 2023 16:13
custom-notifications component
"use client";
import { useEffect } from "react";
import { VariantProps, cva } from "class-variance-authority";
import { AlertTriangle, Check, Info, Siren } from "lucide-react";
import { cn } from "@/lib/utils";
import React from "react";
export type CustomNotificationType = {
@ricardogottheil
ricardogottheil / main.dart
Last active September 5, 2023 03:14
Ejemplo 3: Alineado a la derecha
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override