Project 3 TAOBAO flutterflow animation effect
Page analysis
In FlutterFlow, I analyzed the Taobao page I made myself, further optimized the page's aesthetic appeal, and added appropriate animation effects to enhance the overall user experience and visual appeal.
A complete process from logging in to searching, placing an order, making payment, and checking the express delivery, etc.
youtu explanatory Link:https://youtu.be/GWwSfxixmxU?si=yyL3j6Z0XnyhsVT4
1.Taobao login page
The Taobao icon appears, and information content is displayed upwards, which is more guiding for people to enter their personal messages. It's interesting
I. Page Structure Construction
1. Create a new page
Create a blank page named 'loginpage1' for my step 1
2. Main container layout
Drag the Column (vertical layout component) as the main container of the page. Set the right panel:
Alignment: 'Main Axis Alignment' → 'Center' (content vertically centered).
Padding: 'Padding' → Set 20 in all directions (avoid content padding).
3. Add core components
Drag and configure in sequence from top to bottom:
Image (Taobao Logo) :
Upload the Logo image, and set 'Width: 122.4', 'Height: 123.6', and 'Border Radius: 8' (circular effect) on the right side.
Text (Title/subtitle) :
Title: Fill in the text as' WELCOME TAOBAO ', set font size 36, Bold (' 600-Semi bold ').
Subtitle: Fill in 'So pleasant to shopping' with small font size ( '14') and 400-Normal light gray (' Color: #57636c ').
Text Field '×2 (telephone/password input box) :
Phone box: Label Text: Phone number, Text Input Type: Phone '.
Password box: 'Label Text: Password', 'Text Input Type: Password'
Button (Login Button)
Fill In 'Sign In' in the text, select orange as the background color (such as #fd8129), and white as the text color.
Text (Auxiliary text)
Retrieve Password: Type 'Forgot password' and set it to "text button" style (small font size 14, font weight400-Normal, light gray #57636C).
Third-party login prompt: Fill in 'Or sign up with' in the text, in the same style as the subtitle.
Button×2 (Third-party login) :
Drag in the 'Button', nesting the Wechat/Alipay Logo (' Image 'component) + text (such as' Wechat fast login') respectively, with a white background and dark text.
Ii. Animation Configuration
Taobao Logo animation (fade-in)
Select the 'Image' component of the Logo → find the Animations panel on the right → start 'Initial Animation' (initial loading animation).
- Add/configure the animation types in sequence:
'Fade' :
Curve: 'Ease In Out'/Duration: '1150ms'/Delay: '800ms'/INitial; 0295/Final; 1
2. Input box label upward movement animation (Focus interaction)
Select the "Phone number" input box → Find the 'Interactions' panel on the right side.
Configure the 'On Focus' (when focusing) animation:
Action type: 'Animate Widget' → Target select 'Label' (input box label).
Animation parameters:
Displacement (' Slide ') : 'Y-axis -16px' (label moved up).
Duration: '300ms', curve:' Ease In Out '.
Configure the 'On Blur' (when out of focus) animation:
Action type: 'Animate Widget' → Target select 'Label'.
Animation parameters:
Shift (' Slide ') : 'Y-axis 0px' (label restore).
Duration: '300ms', curve:' Ease In Out '.
2.Homepage
(In Project2, it was mentioned and learned that there are horizontal and vertical sliding animations on the page)
I. Overall Structure Planning (Corresponding to Widget Tree)
The entire page can be divided into the top search bar area, the Tab switching area, the content list area, and the bottom navigation bar area, corresponding to the commonly used Scaffold + hierarchical layout (AppBar, TabBar, ListView, etc.) in Flutter.
Ii. Animation
Select the target component
On the Widget tree or canvas on the left, select the element to which you want to add an animation (Container, Text, IconButton, etc.).
Add an animation process
Click on the "Animate" panel on the right (or find the Animation entry in the top toolbar), and select "Add Animation".
Select the animation type
Configure animation parameters
Duration(ms) : Drag the slider or fill in the value (2000) to set the duration of the animation.
Delay(ms) : Fill in the delay time (1000) to control when the animation starts.
Frequency(Hz) : Adjust the frequency of the painting to affect the density of "jitter" and "rebound".
Select the Slide type animation, drag the Horizontal Offset slider to set the left and right Offset, and the Vertical Offset to set the up and down displacement.
Binding trigger condition
Auto-play during loading: The default animation is mostly "play when entering the Page", and it is triggered by selecting "On Page Load".
In CommonlyUsed Elements, select RatingRar, choose container, select 1 number, switch the color to orange (#fd8129), and change to the icon you want. Then you can click to darken or brighten it.
Iii. Up and Down/Left and Right Sliding Interaction (List, Page Sliding)
Swipe up and down (scroll the product list)
Using the ListView component:
Drag the ListView from the left component panel to the canvas and set it to "Vertical".
Filling content
When nesting containers/cards, etc. in the ListView, FlutterFlow will automatically make the content slide up and down when it exceeds the screen.
Control sliding behavior
Select ListView. On the right panel, you can set "Scroll Physics".
2. Swipe left and right (such as top Tab switching, horizontal product bar)
Use ListView + Horizontal mode:
Drag the ListView onto the canvas and set "Direction" to "Horizontal" on the right side, and the content will slide left and right.
Switch the TabBar left and right
Drag the TabBar component, and FlutterFlow automatically ADAPTS to swiping left and right to switch tabs. Just place different content pages in the TabBarView.
Pop-up sub-page on the home page (log out)
(The sliding interactive animation was mentioned and learned in Project2)
I. Page Structure
1. Select homepage2 → Drag into 'Drawer' (Elevation 16, add hide drawer animation effect)
2. Nested multi-layer 'Column' (adjusting Spacing/Padding to separate headings, text, and button areas)
Ii. ICONS and Titles
1. Place an Icon in the upper 'Column' (select the style outside the arrow, adjust the size/color)
2. Add 'Text' on the same layer (with the content 'Logout', set in bold/large font)
Iii. Prompt Text
Middle-level 'Column' plus' Text '(content' Are you sure want to log out ',
Iv. Button Group
1. Underlying 'Row'
2. Cancel button:
The text 'Cancel' is set with a light gray background and black text
3. Logout button:
Text 'Yes, Logout' with red background and white text
3.Search page
1. Select element:
Select the "Historical Search" text component as the motion effect object.
2. Set trigger:
Select "On Page Load" (Trigger the animation upon page loading).
3. Configure zoom parameters
- Curve: Select "Ease In" to make the animation start slowly and accelerate later, with a natural transition.
- Duration: 900ms, controlling the time from the start to the end of the animation.
- Delay: 0ms. It is executed immediately after the page is loaded without waiting.
- Initial scaling (X/Y) : Set to 3 to initially enlarge the text by 3 times.
- Final scaling (X/Y) : Set to 1, and the text will return to its normal size after the animation ends.
(The logo bouncing and running animation was mentioned and learned in Project2 and applied here)
Animation trigger
Select the target component (such as the 'Row' to be moved), and select the trigger time (' On Page Load ') in the "Animations" panel on the right.
Set the animation type to 'Slide', and bind the parameters (duration, delay, displacement) to the preceding variables.
In the "Animations" panel, click "+ Add Animation" and select the "Rotate" animation type.
( Page Structure Construction)
1. Basic framework
Create a new page, drag it into the 'AppBar', and set an orange background and title.
Use 'Stack' as the underlying container for hierarchical layout.
2. Search bar
Drag in 'TextField' (search box) + 'Icon' (search icon), wrap it with 'Row', and set rounded corners and an orange border.
3. Content Area
Drag into the 'Column' to vertically arrange each module (historical search, hot search, recommended products), separated by 'Container'.
Ii. Module Refinement
1. Historical search
Title: 'Text' component (in orange font).
Tag: Multiple 'containers' +' Text 'are placed inside the' Row '.
2. Taobao Hot Search
Title: 'Text' + Flame 'Icon'.
List: Multiple 'rows' are placed inside the' Column ', with 'Text' on the left (sequence number + keyword) and 'Text' on the right (' Hot '/' New 'tags).
3. Recommended products
Title: 'Text'.
Grid: 'GridView' or 'Row' loop, with each item wrapped in 'Column' :
Product name, original price (underlined), current price (red), discount label (orange 'Container'), sales volume.
4. Search results page
I. Basic structure construction
Page framework
Create a new page and drag the AppBar component
Set the title as "Search Results" and select orange as the background color.
Add a return Icon on the left (select the arrow icon).
"Filter bar
Drag into the Row component (for placing filter buttons), and add the following inside:
Three Button components (the words are Synthesis, Sales volume, and Price respectively).
Set the Synthesis button to an orange background with white text (the other buttons to a gray background with black text).
Ii. Implementation of the Product List
List container
Drag into the GridView component (set it to a 2-column layout, and adjust the spacing and padding as needed).
Commodity card
Each card is wrapped in a Container (with rounded corners, shadows, and a white background),
and the internal Column layout is:
Text component: Product name (e.g. Specialty Persimmon Cake, bold font).
Row component: Star rating (5 star ICONS + rating text 4.8).
Text component: Sales volume (e.g. 3,589 sold, in small gray font).
Text component: Price (e.g. ¥28.90, in red font).
Iii. Styles and Data Configuration
Global style
Set uniformly in the "Style" panel on the right:
Title font: Bold, white (compatible with the orange background of AppBar).
Button style: Synthesis button, orange background, rounded corners; The other buttons have a gray background and rounded corners.
Product card: 8px rounded corners, shadow effect (BoxShadow).
Data Binding (Dynamic Scenarios
On the left side, "Backend" builds the data model Product, which includes fields: name (name), rating (rating), sales (sales volume), and price (price).
Use API Call or simulated data to bind to the items data source of GridView.
5.Product details interface
(In Project2, it was mentioned and learned. Here, it is applied to the interactive animation of image rotation)
Drag the ExpansionPanelList (expand the panel list) from the left component panel or combine the ListView with the ExpansionTile component.
I. Select Elements
Ii. Set triggers and types
Trigger: Select On Page Load (Play immediately upon page load) or interactive trigger.
Type: Select Shimmer (Low Light/sweeping light motion effect) to simulate the gradual flow of light.
Iii. Adjust core parameters
Curve (Animation Curve) : Select 'Ease Out' (start fast and then slow to make the ending natural).
Duration: '1570ms', controlling the speed of one sweep (the higher the value, the slower it is).
Delay: '1350ms', setting how long the animation starts after the page is loaded.
Color (Color) : Select a light Secondary color (' secondary ') to create a soft contrast with the background/text.
Angle (Angle) : For example, '-25°', controls the direction in which the light sweeps (positive or negative changes the tilt direction).
I. Page Structure Construction
1. Create a new page
In the FlutterFlow project, click + New Screen "and name it (Productdetailsscreen5).
2. Enter the AppBar
Find the AppBar from the left component bar and drag it to the canvas. On the right property panel:
To add a back button: Select 'Leading' → 'IconButton', and then choose the back arrow icon.
- Add ICONS on the right: Select 'Actions' → drag' IconButton 'to set the ICONS for share and shopping cart.
Ii. Product Content Module (From top to bottom)
3. Carousel of product images
Drag the Carousel component onto the canvas. Properties on the right:
Click 'Items' → add' CarouselPage ', and drag 'Image' in each page
4. Layout of product information
- Drag the Column component below the image and insert Text inside:
- Place of shipment: Drag 'Text' → fill in "Place of shipment: Xian city".
- Title: Drag 'Text' → Set to large font size and bold (change the style of the properties on the right), and fill in "Specialty persimmon cake".
Promotion copy: Drag 'Text' → fill in "After sale..." from yesterday.
- Price: Drag 'Text' → Set it to orange and large font size, and fill in "¥299".
Iii. Service/Delivery Tips
5. Logistics, payment and other service sections
Drag the Column component to insert multiple Listtiles (or use the combination of Row+Icon+Text) :
For each 'ListTile', select the 'Icon' (logistics, shield, file, comment icon) on the left side and fill in the text on the right side (such as "3-5 days delivery", "payment security", etc.).
liii. Bottom operation buttons
6. Purchase button
Drag the Row component to the bottom of the page and drag two buttons inside
The first button: Fill in "Add to cart" in the copy
The second button: Fill in "Buy Now" in the copy and set the click action (to jump to payment).
6.Product selection page
1. Basic Structure
The top part is an `AppBar` (including a back button, title, and shopping cart icon).
The main body uses a `Column` or `Stack` layout.
2. Product Image Area
Add the `Carousel` component
Add the `Image` component to each carousel page
3. Product Information
Title and Price
Quantity Control
4. Address Selection
`Text` displays the current address
`IconButton` (down arrow) triggers the address selection logic
5. Payment Button
Add a `Button` component
Configure the click event (such as navigating to the payment page)
7.Order Confirmation Page
When you click the "Remove" button, the trash can icon will vibrate.
1. Trigger Settings:
Select "On Action Trigger", which means the animation will be activated by an interactive action (click).
2. Shaking Parameters
Animation Curve: Select "Ease In Out", the animation speed is "slow → fast → slow", which makes it more natural.
Duration (ms): Set 1000 (1 second), this controls the total duration of the shaking. The larger the value, the longer the shaking lasts.
Delay (ms): Set 0, after triggering, there is no delay before the shaking starts; a delay value should be filled in accordingly.
Frequency (Hz): Set 10, this controls the number of shakes within 1 second. The higher the value, the more frequent the shaking.
Horizontal/Vertical Offset: Set 0, this controls the horizontal/vertical offset of the shaking.
Rotation Angle: Set 0
Layout Setup
1. Page Container
2. Title Bar: Use `Row` to place `IconButton` (Back) + `Text` (Order Details title)
3. Product Information Area
Drag `Row`, place `Image` (product image) on the left, and drag `Column` to stack `Text` (name, price, packaging)
- Add `IconButton` (delete icon) to the product area, bind the deletion logic
Below, use `Row`/`Text` to place the address (icon + text)
4. Delivery Instructions:
Drag `Text` and fill in the delivery rules text
5. Order Summary Area:
Drag `Column`, write "Order Summary" at the top. Use multiple `Row` to present price details (left text, right amount), and make the last row larger in size/color to indicate the total
6. Bottom Buttons: Drag `Button`, change to orange color and write "Confirm Payment"
8.Payment page
1. Add Outer Row
Drag the Row from the component panel
Set the alignment and margin in the property panel
2. Nesting Inner Row
Drag the second Row into the outer Row
Adjust the arrangement of the sub-components
3. Add basic components
Drag in "Text" and set its content and style
Drag in "Icon" and select the icon type
Drag in "Checkbox" to set the selected state
Drag in "Container" to set the width, height and background
4. Adjust the hierarchical structure
Adjust the nesting order through the component tree
Fine-tune the style details in the property panel
5. Add interaction logic
Bind the Checkbox to the variable
Set the action triggered by the change of the selected state
9.Input Password Page
I. Page Structure Construction (Drag-and-Drop Components)
1. Create a new page (InputPasswordPage9
2. Main Layout (Column)
Drag into the Column (vertical layout) to carry the title, description, PIN display, buttons, and keyboard.
3. Title and Description (Text)
Drag 2 texts to the Column:
The first one: Content 'Enter Your PIN', set the title style (large font size, bold).
The second one: content 'Enter your PIN to confirm top up', set the auxiliary style (14size, gray).
4. PIN display area (drag like pincoad)
Drag Row (horizontal layout) → Drag 4 circle Avatars (or set Container to circle) :
Use '*' as a placeholder
5. Confirm button
6. Numeric keypad (GridView + buttons)
Drag GridView (set to 3 columns) → Drag 12 Buttons /Text + Container:
The numbers' 1 to 9 '; The 10th one: Empty (or hidden) The 11th: The number '0'; The 12th one: IconButton.
11.Payment success page
1.Trigger timing: Select On Page Load
2. Basic Settings
Enable Loop Animation
Enable Reverse Animation
Open Hide Before Animating
Enable "Apply same duration & delay"
Duration (ms) : 1120
Delay (ms) : 0
3. Zoom Settings
Animation Curve: Linear
Initial Scale X/Y: 2
Final Scale X/Y: 1
Font flipping and jumping animation effect
I. Selection of Trigger Timing
Select "On Page Load" to make the animation execute automatically when the page is loaded.
Ii. Basic Animation Parameters
Enable Loop Animation
Enable Reverse Animation
Enable Hide Before Animating
Enable Apply same duration & delay
Set Duration (ms) to '820' to control the time from the start to the end of the animation
Set the Delay (ms) to '0' and start the animation immediately after the page is loaded
Iii. Flip Animation Configuration
Select 'Bounce' for the Animation Curve to give the animation a flexible and bouncy rhythm
Set Initial Flip** to '0', and the flip Angle at the beginning of the animation is 0 (initial state).
Set Final Flips to '2', and complete two flip actions at the end of the animation
I. Pages and Infrastructure
1. Create a page: Create a new page named 'Successfulpayment10'.
2. Add the Column component: As a vertical container for page content, it is used to orderly arrange sub-components.
Ii. Component Addition and Hierarchical Construction
1. Container (Container) : Drag it into the Column, where you can set the style (such as background, size, etc.) to wrap the Icon.
2. Icon (Icon) : Place it in the Container, select the appropriate icon, and use it to display relevant identifiers such as successful payment.
3. Text (Text) : Add multiple Text components to the Column to display information such as successful payment prompts and amounts.
4. Nested Colum* : Drag another Column into the main Column to serve as a vertical container for the button group.
5. Button (Button) : Add multiple Buttons to the nested Column. You can set the button text (such as "View Order", "Return Home Page") and the click event.
6. AppBar (Application Bar) : Added to the page, it sets the title, style, etc., and is used for the page navigation bar.
7. IconButton (IconButton) : Drag it to an appropriate position on the page (such as AppBar), select the icon, and set the interaction (such as Back, More operations).
11.Order Details interface
1. Create a page:
Create a new 'TransactionHistoryPage' and set it to the 'Scaffold' structure
2. Configure the AppBar:
Title "Transaction History", place the back button on the left side
3. Add tabs:
Use 'ChoiceChips' or' TabBar 'to set the options' ["All", "Follow", "Historical purchase", "Return/A"]'
4. Product Information Card:
Use 'Card' for the outer layer
Place the product name and price in the top 'Row'
Display the specifications, origin and shelf life in sequence using 'Text'
Separate with 'Divider'
The address information is displayed using 'Text'
5. Fee Details Card
Wrap it with 'Containter'
Arrange the content in a 'Column'
Multiple 'rows' display fee items and amounts
6. Transaction Details Card
'Containter' title "Transaction Details"
The 'Row' layout displays the payment method, transaction date, and transaction order number
7. Bottom operation buttons:
The buttons are arranged in a Row at the bottom
add two 'buttons', with the words "Change add" and "Check"
Add the customer service headphone icon on the left side
12.Express delivery order interface
1. Select components and Add Animation:
Select the component you want to animate, and click "+ Add Animation" on the right.
2. Set the trigger condition:
Select "On Page Load" as needed.
3. Basic animation parameters:
Open "Loop Animation", "Reverse Animation" and "Hide Before Animating".
Fill in "Duration (ms)" (e.g. 840) and "Delay (ms)" (e.g. 200) to set the duration and delay.
4. Effect (Ease in out)
In "Animation Curve", select curves such as "Ease In Out" to control the transition rhythm.
Set "Initial Opacity" to 0 (initial transparency) and "Final Opacity" to 1 (final display) to achieve fade-in.
1. Select components
Select the component you want to shake → Animation configuration area → Add Animation '.
2. Set the trigger timing
Select the trigger method
- Page loading triggered → Select On Page Load
Trigger (The trigger action needs to be bound first)
3. Add the "Shake" animation & fill in the parameters
Select "Shake" as the animation type and fill in the key parameters as shown in the screenshot
Animation Curve: 'Ease In'
Frequency: '10 Hz'
Horizontal Offset: '0'
Vertical Offset: '0'
Rotation Angle: '50°
Duration: '200 ms
Delay: '640 ms'
4. Switch Configuration
Loop play → Open 'Loop Animation'
Reverse Animation → Open 'Reverse animation'
Hide Before showing → Open 'Hide Before Animating'
I. Component Hierarchy Construction (Based on Widget Tree Structure)
1. Root layout: Drag 'Column' as the main container of the page and vertically arrange all modules.
2. Title Bar:
Add 'AppBar' or use 'Row' → return 'IconButton' on the left side, 'Text("Check logistics")' in the middle, and more operations' IconButton 'on the right side (three points).
3. Product Information Card:
Drag 'Container'/' Card 'to make a card → use' Row 'inside:
Place 'Image' on the left side;
Fill in the text on the right 'Column' : product name, weight, place of origin, and price.
4. Order Status Module
Use 'Text("Order Status")' as the title → nest multiple 'rows' with' Column ':
On the left side of each 'Row', there is an 'Icon' (a checkmark/circle, with colors distinguishing the status), and on the right side of the 'Column', fill in the status text and time.
5. Logistics Tracking Module
Use 'Text("Tracking Information")' as the title → Place the tracking number 'Row' (label + tracking number) in 'Container' (orange background) → fill in the current position and the text of the next stop with 'Column'.
6. Bottom button:
Place two 'buttons' in the' Row '→ set the text to "Change add" and "Check".
Ii. Style Configuration
1. Container/Card
Set 'padding'/' margin 'to control the spacing;
The card has rounded corners and shadows (' Border Radius'/' Box Shadow ').
2. Text
3. Icon
Change the color according to the status (green completed, orange in progress).
Process summary
This is an interactive storyboard of the Taobao shopping process. The process is as follows:
1. Login : Through the "loginpage1" page, you can choose password login, wechat quick login, or Alipay quick login.
2. Browsing and Searching : Enter the homepage of "homepage2", and you can search and view recommendations; Search on the "HotSearchInterpage3" hot search page; Browse the products on the "Searchpage4" search results page.
3. Product Selection : On the "Productdetailsliscreen5" product detail page, select the specifications (such as quantity, size, etc.).
4. Order and Payment : "Confirmorder7" to confirm the order information; "Payment8" Select the payment method (bank card, Alipay, etc.); Enter the password with "InputPasswordPage9". "Successfulpayment10" payment was successful.
5. Order After-sales Service : Check transaction records and fee details through "Orderinterface11"; "Logistics12" tracks the status of logistics and distribution.
Some introductions to animations Explanation
URL:taobao
Comments
Post a Comment