Skip to content

Instantly share code, notes, and snippets.

@felixblaschke
Created April 11, 2019 16:34
Show Gist options
  • Save felixblaschke/63161ec326a9f10517fae5949df1891f to your computer and use it in GitHub Desktop.
Save felixblaschke/63161ec326a9f10517fae5949df1891f to your computer and use it in GitHub Desktop.
Fade-in UI Demo - Animated
class FadeInUi extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Container(
padding: EdgeInsets.all(20.0),
child: Column(
children: <Widget>[
FadeIn(1.0, HeaderPlaceholder()),
WhitespaceSeparator(),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
FadeIn(2, CirclePlaceholder()),
FadeIn(2.33, CirclePlaceholder()),
FadeIn(2.66, CirclePlaceholder())
],
),
WhitespaceSeparator(),
FadeIn(4, CardPlaceholder()),
FadeIn(4.5, CardPlaceholder()),
FadeIn(5, CardPlaceholder()),
FadeIn(5.5, CardPlaceholder())
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment