Skip to content

Instantly share code, notes, and snippets.

View jescacena's full-sized avatar

Javier Escacena jescacena

View GitHub Profile
@jescacena
jescacena / main.dart
Created March 28, 2022 19:35
Flutter animation physics based example
import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
void main() {
runApp(const MaterialApp(home: PhysicsCardDragDemo()));
}
class PhysicsCardDragDemo extends StatelessWidget {
const PhysicsCardDragDemo({Key? key}) : super(key: key);
@jescacena
jescacena / main.dart
Created March 28, 2022 17:18
Flutter FadeTransition Example
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
static const String _title = 'Flutter Code Sample';
@override
@jescacena
jescacena / main.dart
Last active March 28, 2022 18:52
Flutter AnimatedOpacity Example
import 'package:flutter/material.dart';
const owlUrl =
'https://raw.githubusercontent.com/flutter/website/master/src/images/owl.jpg';
class FadeInDemo extends StatefulWidget {
const FadeInDemo({Key? key}) : super(key: key);
@override
_FadeInDemoState createState() => _FadeInDemoState();