13

GitHub - gskinnerTeam/flutter_vignettes: A collection of fun Flutter experiments...

 4 years ago
source link: https://github.com/gskinnerTeam/flutter_vignettes
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.md


68747470733a2f2f67736b696e6e65722e636f6d2f666c75747465725f73686f77636173652f7368617265642f4865616465724032782e706e673f


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


68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f706172616c6c61785f6c6973745f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f676f6f65795f656467655f6564697465645f736d2e6769663f

Mindfullness 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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f626f617264696e675f706173735f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f7061727469636c655f73776970655f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f627562626c655f7461625f6564697465645f736d2e6769663f

Icon Flip Button Bar

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

View Code





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f6472696e6b5f726577617264735f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f646f675f736c696465725f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f636f6e7374656c6c6174696f6e735f6c6973745f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f706172616c6c61785f6865726f5f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f6c69717569645f6e61765f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f70726f647563745f64657461696c5f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f6461726b6d6f64655f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f6261736b657462616c6c5f7074725f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f706c616e745f666f726d5f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f696e64696533645f6564697465645f736d2e6769663f

Feature Artist Carousel

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

View Code





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f737061726b6c655f70617274795f6564697465645f736d2e6769663f

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





68747470733a2f2f666c75747465722e67736b696e6e65722e636f6d2f70726576696577732f7370656e64696e675f747261636b65725f6564697465645f736d2e6769663f

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 youre IDE, run flutter 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 Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK