Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Flutter + Android + iOS

Mariano Zorrilla mkiisoft

🤓
Flutter + Android + iOS
View GitHub Profile
@mkiisoft
mkiisoft / main.c
Last active Nov 18, 2020
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 Apr 5, 2020
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 Apr 7, 2020
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
@mkiisoft
mkiisoft / sfxp_meetup.dart
Last active May 17, 2020
Card + ListView Animation by Mariano Zorrilla
View sfxp_meetup.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
@mkiisoft
mkiisoft / wrap_extension_web.dart
Last active Jan 28, 2020
Wrap + Extensions + Flutter Web
View wrap_extension_web.dart
// Dart Extensions were introduced in Dart 2.7. Make sure you're using 'flutter channel dev'
// to try the latest implementations.
// Add the following lines inside 'analysis_options.yaml' file (root folder)
// analyzer:
// enable-experiment:
// - spread-collections
// Make sure to use 'flutter upgrade' and then run the code if you were not up to date.
@mkiisoft
mkiisoft / login_example.dart
Last active Feb 7, 2020
Correct way to keep a login state of users and do the expected routing. Flutter - Dart (Flutter NYC Meetup)
View login_example.dart
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart'; // pubspec.yaml shared_preferences: any
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
final backend = await Backend.init();
runApp(DemoApp(backend: backend));
}
class Backend extends ChangeNotifier {
View gist:e963b18d3b58410b8428752129df2c16
@override
Widget build(BuildContext context) {
final width = MediaQuery
.of(context)
.size
.width - 80;
return Material(
child: Scaffold(
body: Container(