Skip to content

Instantly share code, notes, and snippets.

View A1Gard's full-sized avatar
🎭
working hard

A1Gard A1Gard

🎭
working hard
View GitHub Profile
@A1Gard
A1Gard / main.dart
Created February 24, 2020 05:13
main dart of parallax
import 'package:flutter/material.dart';
import 'parallax_component.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
@A1Gard
A1Gard / parallax_component.dart
Created February 24, 2020 05:11
parallax component
import 'package:flutter/material.dart';
class ParallaxImage extends StatefulWidget {
final ImageProvider image;
final Widget child;
final double height;
ParallaxImage({Key key, this.image, this.height, this.child}) : super(key: key);
@override
@A1Gard
A1Gard / step1.dart
Created February 24, 2020 05:08
create project parallax
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter image scroll parallax',