Skip to content

Instantly share code, notes, and snippets.

View mkiisoft's full-sized avatar
🤓
Flutter + Android + iOS

Mariano Zorrilla mkiisoft

🤓
Flutter + Android + iOS
View GitHub Profile
@mkiisoft
mkiisoft / build.yaml
Created March 2, 2021 13:22 — forked from britannio/build.yaml
Example build.yaml config for https://pub.dev/packages/build_runner using ferry, moor, freezed, json_serializable and injectable
targets:
$default:
sources:
exclude:
- "**/components/**"
- "**/exceptions/**"
- "test/**"
builders:
gql_build|schema_builder:
@mkiisoft
mkiisoft / movies.json
Last active July 19, 2020 10:16 — forked from saniyusuf/Film.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 / multi_select.dart
Created September 2, 2019 18:11 — forked from slightfoot/multi_select.dart
Multi Select GridView in Flutter - by Simon Lightfoot (Drag to select multiple items)
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// 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
// furnished to do so, subject to the following conditions:
@mkiisoft
mkiisoft / slow_scroll_flutter.dart
Created August 7, 2019 15:28 — forked from rodydavis/slow_scroll_flutter.dart
just need random color package
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:random_color/random_color.dart';
class SlowScrollView extends StatefulWidget {
@override
_SlowScrollViewState createState() => _SlowScrollViewState();
}
@mkiisoft
mkiisoft / tiltable_stack.dart
Created August 5, 2019 15:48 — forked from Schwusch/tiltable_stack.dart
A tiltable stack, an idea originated from 2dimensions
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
class TiltableStack extends StatefulWidget {
final List<Widget> children;
final Alignment alignment;
const TiltableStack({
import 'package:flutter/material.dart';
class BreathingWidget extends StatefulWidget {
final Widget child;
const BreathingWidget({Key key, @required this.child}) : super(key: key);
@override
_BreathingWidgetState createState() => _BreathingWidgetState();
}
@mkiisoft
mkiisoft / CurvedShape.dart
Created July 16, 2019 05:35 — forked from tarek360/CurvedShape.dart
Draw a curved shape in Flutter
import "package:flutter/material.dart";
import 'package:flutter/services.dart';
import 'dart:math';
const CURVE_HEIGHT = 160.0;
const AVATAR_RADIUS = CURVE_HEIGHT * 0.28;
const AVATAR_DIAMETER = AVATAR_RADIUS * 2;
void main() => runApp(new MyApp());
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart';
void main() => runApp(ExampleApp());
class ExampleApp extends StatelessWidget {
@override
@mkiisoft
mkiisoft / main.dart
Created March 4, 2019 19:21 — forked from filiph/main.dart
Implementation of the ring of circles in Flutter. Initial inspiration: https://twitter.com/InfinityLoopGIF/status/1101584983259533312. Kotlin implementation: https://gist.github.com/alexjlockwood/e3ff7b9a05dd91ff0955b90950bf7ee5
import 'package:flutter/material.dart';
import 'package:ring_of_circles/src/widget.dart';
/// Just the app. Nothing to see here, except the code for changing
/// the number of circles (`n`).
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@mkiisoft
mkiisoft / IconView.kt
Created February 6, 2019 23:33 — forked from nickbutcher/IconView.kt
A prototype implementation of a shadow effect inspired by the Google Play Games app (https://play.google.com/store/apps/details?id=com.google.android.play.games).
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY