Skip to content

Instantly share code, notes, and snippets.

@Br0wnZ
Br0wnZ / custom_image.dart
Last active January 25, 2023 09:09
Image with backdrop shadow and loading handler
import 'dart:ui';
import 'package:flutter/material.dart';
class CustomImage extends StatelessWidget {
final String image;
const CustomImage({super.key, required this.image});
@override
Widget build(BuildContext context) {
@Br0wnZ
Br0wnZ / pokemon_details_model.dart
Last active December 21, 2022 08:21
A dart model that contains all the details of a Pokémon
class PokemonDetails {
List<Abilities>? abilities;
int? baseExperience;
List<Forms>? forms;
List<GameIndices>? gameIndices;
int? height;
List<HeldItems>? heldItems;
int? id;
bool? isDefault;
String? locationAreaEncounters;
@Br0wnZ
Br0wnZ / vite.config.ts
Created December 2, 2022 09:10
vite config for vue 3 and i18n
import { fileURLToPath, URL } from "node:url";
import { resolve, dirname } from "node:path";
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
@Br0wnZ
Br0wnZ / main.ts
Created December 2, 2022 09:06
i18n for Vue 3 with Composition API
import { createApp } from "vue";
import { createI18n } from "vue-i18n";
import App from "./App.vue";
import messages from "@intlify/unplugin-vue-i18n/messages";
const i18n = createI18n({
legacy: false,
globalInjection: true,
locale: "es",

Keybase proof

I hereby claim:

  • I am br0wnz on github.
  • I am br0wn (https://keybase.io/br0wn) on keybase.
  • I have a public key ASCIRyR9kh6BqeYsrH2gUFg47ryD9GgnUF7tckJWzepc8Ao

To claim this, I am signing this object: