Skip to content

Commit efe0454

Browse files
committed
Added implicit animation
1 parent 568e454 commit efe0454

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed
319 KB
Loading
258 KB
Loading

docs/ff-concepts/animations/animations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Animations
33
sidebar_position: 1
4+
description: Learn the basics of animations in FlutterFlow.
45
---
56

67
Enhancing your app with animations significantly improves the user experience, making it more engaging and intuitive. In FlutterFlow, you have several options to add animations to your app:
Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
---
22
title: Implicit Animations
33
sidebar_position: 2
4+
description: Learn how to add implicit animations in FlutterFlow.
45
---
6+
import Tabs from '@theme/Tabs';
7+
import TabItem from '@theme/TabItem';
58

6-
Animating a container (show a progress bar for checkout page loading)
9+
# Implicit Animations
10+
In Implicit Animation, the widget automatically animates to a new property's value when they are updated. For example, the container widget animates whenever you change its size and colors.
11+
12+
:::info
13+
Implicit Animation is recommended only when you want to run the animation once (after the properties are changed).
14+
:::
15+
16+
Here's an example of how it looks when you update the container properties with and without Implicit Animation.
17+
18+
<Tabs>
19+
<TabItem value="1" label="Without Implicit Animation" default>
20+
![Without Implicit Animation](animation_gifs/without-implicit-animation.gif)
21+
</TabItem>
22+
<TabItem value="2" label="With Implicit Animation">
23+
![With Implicit Animation](animation_gifs/with-implicit-animation.gif)
24+
</TabItem>
25+
</Tabs>
26+
27+
Here's how you add the Implicit Animation on Container widget:
28+
<div style={{
29+
position: 'relative',
30+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
31+
height: 0,
32+
width: '100%'}}>
33+
<iframe
34+
src="https://demo.arcade.software/3rbT4yu7bm4fXgLSpzXU?embed&show_copy_link=true"
35+
title=""
36+
style={{
37+
position: 'absolute',
38+
top: 0,
39+
left: 0,
40+
width: '100%',
41+
height: '100%',
42+
colorScheme: 'light'
43+
}}
44+
frameborder="0"
45+
loading="lazy"
46+
webkitAllowFullScreen
47+
mozAllowFullScreen
48+
allowFullScreen
49+
allow="clipboard-write">
50+
</iframe>
51+
</div>
52+
<p></p>

docs/ff-concepts/animations/widget_animations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Widget Animations
33
sidebar_position: 1
4+
description: Learn how to add widget animations in FlutterFlow.
45
---
56
import fadeGif from '@site/static/img/animations/animation_gifs/fade.gif';
67
import scaleGif from '@site/static/img/animations/animation_gifs/scale.gif';

0 commit comments

Comments
 (0)