Skip to content

A collection of fun Flutter experiments, created by gskinner, in partnership with Google.

License

Notifications You must be signed in to change notification settings

xiewenya/flutter_vignettes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation



The Flutter Vignettes

A collection of explorations into the exciting user experience possibilities enabled by the Flutter platform. Built by gskinner in partnership with Google, these vignettes range from the practical to the novel. They aim to inspire both developers and designers to build delightful and beautiful experiences with Flutter.

In addition to forking and reviewing the MIT licensed code available here, you can also check out more information on the Vignette Showcase Website.


About gskinner

We exist to build inovative digital experiences for smart clients, and we love how easy Flutter makes that. Don't hesitate to stop by our site to learn more about what we do. We'd love to hear from you!


The Vignettes


Travel Cards

Use a Stack widget to create a parallax effect inside of a list, while also using a Transform to give it a 3D card effect.

View Code





Mindfulness Gooey Transition

Draw curved vector paths and use them to mask content. Utilizes a small physics simulation to calculate tension between a set of points.

View Code





Boarding Pass Cards

Uses the Transform widget to create a folding card effect. In this case a boarding pass with multiple folds, each fold containing a child widget.

View Code





Inbox Swipe Particles

Demonstrates how you can use particles in your Flutter app and how to tie multiple actions to a list swipe.

View Code





Icon Flip Button Bar

Example of a bespoke NavigationBar with animated buttons that change size, shape, and color when selected.

View Code





Liquid Rewards Cards

Shows how to easily create resizeable list items using AnimatedContainer; also uses the Canvas API to simulate a liquid effect.

View Code





Dog Toy Slider

Use a Flare animation to create a custom Slider control. Creates a custom FlareControl class for playback while the slider itself is painted on a Canvas.

View Code





Guide To the Stars Particles

Shows how to use an animated Canvas as the primary background for your app. In this case, a starfield effect that controls its animation speed based on user scrolling and page transitions.

View Code





Paris Travel Hero Transition

Shows how you can create a custom Hero effect that contains complex animations and retains its state between pages.

View Code





Fluid Button Bar

Uses a Canvas to create a fluid-style navigation bar that has a fun bouncy feel to it; also shows how to use the Path API to draw, and animate some custom icons.

View Code





Product Zoom Transition

Example of an animated png sequence within a Hero animation; also uses a Canvas to render and animate a product detail overlay.

View Code





Article Dark Mode

Shows how a png sequence can be used to mask an arbitrary widget. Here that technique is used in a page transition between light and dark themes.

View Code





Sports App Pull To Refresh

Shows how to create a custom pull to refresh animation. In this example, we used a sprite sequence to render a basketball spinning around the hoop as it loads.

View Code





Plant Shopping Cart

An example of multi-part form validation and the ability to customize the form contents based on the country the user has selected.

View Code





Feature Artist Carousel

Uses a custom 3D model renderer and blending mask to create a fun and unique background effect.

View Code





Sparkle Party Particles

Uses the drawVertices API to draw a ton of particles extremely quickly. The particles are animated using a sprite sheet and comes with 4 different presets.

View Code





BudgetTracker Graphs

Demonstrates how charts and graphs can be implemented using the Canvas API. It also provides an example of arbitrary panning and scrolling in a view.

View Code






Installation

If you're new to Flutter the first thing you'll need is to follow the setup instructions. Once you're set up and can compile the sample Flutter app, you're ready to run some vignettes!

Each vignette is stored in its own folder in the repository. Using your IDE of choice, open the vignette directory you'd like to run. Then, using the terminal inside your IDE, run flutter pub get to fetch any dependencies, and flutter run to deploy to your connected device or simulator.

If you would like to try these for Flutter for web, you can use flutter run -d chrome. Note that Flutter for web is currently a technical preview and not all of the vignettes will work correctly. For more information on enabling Flutter for web follow the setup instructions.


License


These vignettes are released under the MIT license. You can use the code for any purpose, including commercial projects.

license


About

A collection of fun Flutter experiments, created by gskinner, in partnership with Google.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 90.2%
  • C++ 3.6%
  • CMake 2.0%
  • Swift 1.5%
  • HTML 1.2%
  • Kotlin 0.5%
  • Other 1.0%