Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Flutter + Android + iOS

Mariano Zorrilla mkiisoft

🤓
Flutter + Android + iOS
View GitHub Profile
View free_countries.dart
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart';
void main() => runApp(MainApp());
class MainApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@mkiisoft
mkiisoft / index.js
Created Jan 26, 2022
Firebase Cloud Function to get custom token login
View index.js
const functions = require("firebase-functions");
const admin = require('firebase-admin');
const serviceAccount = require("./path-to-firebase-adminsdk.json");
admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});
exports.getToken = functions.https.onCall(async (data, context) => {
@mkiisoft
mkiisoft / app.dart
Created Nov 24, 2021
Dart Pad Animation
View app.dart
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@mkiisoft
mkiisoft / build.yaml
Created Mar 2, 2021 — forked from britannio/build.yaml
Example build.yaml config for https://pub.dev/packages/build_runner using ferry, moor, freezed, json_serializable and injectable
View build.yaml
targets:
$default:
sources:
exclude:
- "**/components/**"
- "**/exceptions/**"
- "test/**"
builders:
gql_build|schema_builder:
@mkiisoft
mkiisoft / main.c
Last active Jan 8, 2022
Game Boy Color Flutter ROM
View main.c
/*
ROM: https://s3-us-west-2.amazonaws.com/s.cdpn.io/2399829/flutter.gb
*/
/*
LOGO.H
Include File.
View movies.json
[
{
"Title": "Avatar",
"Year": "2009",
"Rated": "PG-13",
"Released": "18 Dec 2009",
"Runtime": "162 min",
"Genre": "Action, Adventure, Fantasy",
"Director": "James Cameron",
"Writer": "James Cameron",
@mkiisoft
mkiisoft / wave_clipper.dart
Last active Apr 11, 2020
Wave Clipper Creator by Mariano Zorrilla
View wave_clipper.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@mkiisoft
mkiisoft / contact.dart
Last active Apr 11, 2020
Contact Us design mimic UpLabs by Mariano Zorrilla
View contact.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@mkiisoft
mkiisoft / yeti.dart
Last active Jan 8, 2022
Flutter - Yeti by Mariano Zorrilla
View yeti.dart
import 'package:flutter/material.dart';
void main() {
runApp(YetiApp());
}
enum ArmAnim {
NORMAL,
HI,
HIDE,
@mkiisoft
mkiisoft / parallax.dart
Last active Jan 8, 2022
Flutter Web - Parallax Mouse Hover Effect
View parallax.dart
/*
MIT License
Copyright (c) 2020 Mariano Zorrilla
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is