Flutter in Action by Eric Windmill

Flutter in Action by Eric Windmill

Author:Eric Windmill [Eric Windmill]
Language: eng
Format: epub, pdf
ISBN: 9781617296147
Publisher: Manning Publications
Published: 2020-01-21T18:30:00+00:00


1 _handleStateChange, the tweens, and controllers need to be rebuilt because the tweens have several different start and end values based on the current selected time of day in the TimePickerRow.

2 If the same tab is chosen, there’s nothing to animate.

3 The next animation state represents the end values for the next animation that fires. (It will also become the starting values for the next animation cycle.)

4 These methods build all the relevant objects and call AnimationController.forward().

5 At this point, multiple values on this object have been updated. Even though only activeTabIndex is set within the callback of setState, all of the changed values on this object will be built appropriately.

6 Gets the hour associated with the selected tab index

7 Sets the selectedHourlyTemperature on the controller with the data from the new values. This way, the data for the next animation cycle is already loaded in.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.