v1.0.3entry
讓您的組件活起來 – Entry 讓您輕鬆將組件動畫化為可見狀態。一個組件即可實現不透明度、縮放、位置和角度的動畫。
一個 Flutter 套件,讓您輕鬆地將組件動畫顯示出來。
{"sdk":"flutter"}{"sdk":"flutter"}^5.2.0^2.2.0{"sdk":"flutter"}^6.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
entry
Pub Package
Platform
https://img.shields.io/pub/likes/entry?logo=dart
https://img.shields.io/pub/points/entry?logo=dart
https://img.shields.io/pub/dm/entry?logo=dart
CodeFactor
CodeFactor
https://img.shields.io/github/stars/mickaelhrndz/entry
This Flutter package introduces a new widget : Entry.
It lets you simply animate a widget into a visible state.
Entry.all and watch it come to life.Entry animates opacity, scale, position and angle concurrently.
You can visualize the Curves constants on its documentation page.
Entry({key, delay, duration, curve, visible, opacity, scale, xOffset, yOffset, angle, child})
This constructor is motionless by default.
It includes every parameter available in named constructors.
Entry has four named constructors :
Entry.all({visible, opacity, scale, xOffset, yOffset, angle}).all makes use of every animation by default, except for angle and xOffset.
The three others are each dedicated to a single animation :
Entry.opacity({opacity})Entry.scale({scale})Entry.offset({xOffset, yOffset})The key, delay, duration, curve, visible and child parameters are omitted here.
Wrapping an Entry with another one works just as you expect it.
By playing with all the parameters, possibilities are endless.
You can copy one of the examples and start from there.
entry
Using Entry with grid builders can create a staggered effect :
Entry widgetdelay value by the index % crossAxisCountIn result, the widgets of a same row will appear after each other.
entry
You can set your delay and/or duration to a random number :
delay: Duration(milliseconds: random.nextInt(300))
This makes the entries look more independent from each other.
entry
A special thank you to Felix Blaschke for his simple_animations package. This package literally depends on it.