flutter/examples/flutter_gallery/lib/demo/material
David Shuckerow dd0acea1ec
Add support for placing the FAB in different positions (#14368)
* Add support to move the fab between positions.

* Motion demo for the FAB works between center and end floating.

* Add a Material curve to the offset animation.

* Move the fab position into an object

* Updates to docs

* Updates to docs

* Fix a lint on the bottom sheet type

* Add a ScaffoldGeometry class

* Improve the documentation

* Improve the documentation

* Add a fab motion animator

* Add position and scale animations

* FAB entrance and motion animations work

* Get started on FAB motion

* Make fab animation work properly.

* Change the fab animator to be stored in the state of the scaffold.

* Add a layout test

* Fix spacing being off

* Fix the entrance/exit animation test.

* Add a textDirection to the layout delegate.

* Fix const constructor lint checks

* Add toStrings for the fab positioner/animator

* Add a toString for CurveTween

* Change the fab motion demo icon to a simple add icon.

* Add tests and a custom fab positioner to the demo.

* Do not start the fab's motion animation when the fab is null.

* Adjust the code to pass the new tests.

* Rename for in response to Hans' comment.

* Revert the tabs fab demo

* Use timeDilation, and clean up the animation code a little.

* Clean up the prelayout geometry docs and ctr order

* Cleanup fab transition widget code

* Clean up comments on Scaffold, add cross-references between the two geometries

* Explain the fab motion animation scheduling better

* Add a const to the fab motion demo

* Make the fab animation never jank by keeping track of where to move the fab to in the future.

* Add a default fab positioner constant

* Add space after comma in the demo

* Add boilerplate dartdoc to all const constructors

* Comment improvement

* Rename 'fabSize' to 'floatingActionButtonSize'

* Rename 'fabSize' to 'floatingActionButtonSize'

* Rename 'fabSize' to 'floatingActionButtonSize'

* Clean up the prelayout geometry object's dartdoc

* Clean up the prelayout geometry object's dartdoc

* Remove extraneous comment

* Change possessive uses of Scaffold's to use dartdoc-compatible [Scaffold]'s

* Rename the horizontalFabPadding to an expansion

* Clean up controller cleanup and setState usage

* Animate instead of lerp

* Make the fab position animation use offsets instead of animations

* Streamline the fab motion demo

* Set up the animator to start from a reasonable place when interrupting animations.

* Doc cleanup on the new animation interruption

* Expand some uses of fab and clean up constants

* Expand remaining public uses of fab to floating action button

* Expand remaining public uses of fab to floating action button

* Expand on the documentation for the fab positioner and animator

* Refactor animations to broadcast the position properly.

* Add the ability to turn on and off the fab to the motion demo.

* Remove unused code

* Change the fab animator to animate even when the fab is exitting.

* Remove extra positioner.

* Apps -> Applications in docs

* Explain the scale animation.

* Name the child parameter in the animated builder

* RTL before LTR

* Wrap the AppBar in the example code

* const the fab motion demo name

* Start a test against animation jumps

* Test for jumps in the fab motion animation

* Dont initialize values to null

* Use constants, fix spacing from some of Hans' comments

* Clarify the relationship between fab positioners and prelayout geometries

* Explain the fab animmator a bit better

* Explain the animation progress in the fab animation

* Explain the animation restart better

* Explain the animation restart better

* Explain the prelayout geometry better

* Explain that height is a vertical distance.

* Explain the horizontal fab padding

* Update the scaffold size description to explain what happens when a wild keyboard appears

* Remove print statements

* Update the scaffold geometry with information about it being available at paint time.

* In one step of a transition

* Explain how the top-start fab positioner works

* Explain how the top-start fab positioner works

* Refactor the scaffold layout to just pass a padding instead of a bottom, top, start and end.

* Refactor the scaffold layout to just pass a padding instead of a bottom, top, start and end.

* Action buttons with with custom positioners.

* Add a rotation animation example.

* Use a swap animation to show swapping between two different animations.

* Use a swap animation to show swapping between two different animations.

* Add an example for the size animations.

* 2018 copyright

* Extra empty line

* Return new Scaffold

* Extra blank line fix

* All its contents have been laid out

* Position the fab

* Explain what the scaffold geometry is for.

* Move asserts to different lines

* The scaffoldsize will not

* Initial rename of FabPositioners to FloatingActionButtonLocation

* Rename comments in example to refer to location instead of positioner.

* Rename fabpositioner to location in tests and in the scaffold field

* Finish removing references to positioner in scaffold code.

* Split the fab location and animation out into a separate file.

* Make things more private

* Import foundation instead of meta

* Const curve instead of final.
2018-03-15 17:04:24 -07:00
..
bottom_navigation_demo.dart Make various images in gallery accessible (#14467) 2018-02-06 09:42:18 -08:00
buttons_demo.dart Add OutlineButton, Tristate Checkbox to Flutter Gallery (#15312) 2018-03-12 10:21:14 -07:00
cards_demo.dart Spelling (#15229) 2018-03-06 21:36:03 -08:00
chip_demo.dart Adding proper accommodation for textScaleFactor in chips, and StadiumBorder border. (#12533) 2017-11-01 19:37:02 -07:00
data_table_demo.dart Constants! Constants everywhere! (#9286) 2017-04-07 12:24:32 -07:00
date_and_time_picker_demo.dart Apply media padding to Gallery Material Design demos (#13593) 2017-12-15 10:13:30 -08:00
dialog_demo.dart Replace child parameter with builder on showDialog (#15303) 2018-03-14 10:40:24 -07:00
drawer_demo.dart Replace child parameter with builder on showDialog (#15303) 2018-03-14 10:40:24 -07:00
expansion_panels_demo.dart Spelling (#15229) 2018-03-06 21:36:03 -08:00
fab_motion_demo.dart Add support for placing the FAB in different positions (#14368) 2018-03-15 17:04:24 -07:00
full_screen_dialog_demo.dart Replace child parameter with builder on showDialog (#15303) 2018-03-14 10:40:24 -07:00
grid_list_demo.dart Apply media padding to Gallery Material Design demos (#13593) 2017-12-15 10:13:30 -08:00
icons_demo.dart Assorted a11y fixes (#14395) 2018-01-31 15:23:20 -08:00
leave_behind_demo.dart Spelling (#15229) 2018-03-06 21:36:03 -08:00
list_demo.dart enable lint prefer_single_quotes (#12665) 2017-10-22 18:11:36 +02:00
material.dart Add support for placing the FAB in different positions (#14368) 2018-03-15 17:04:24 -07:00
menu_demo.dart Docs for menus (#10396) 2017-05-31 10:48:49 -07:00
modal_bottom_sheet_demo.dart Constants! Constants everywhere! (#9286) 2017-04-07 12:24:32 -07:00
overscroll_demo.dart enable lint prefer_single_quotes (#12665) 2017-10-22 18:11:36 +02:00
page_selector_demo.dart Make various images in gallery accessible (#14467) 2018-02-06 09:42:18 -08:00
persistent_bottom_sheet_demo.dart Replace child parameter with builder on showDialog (#15303) 2018-03-14 10:40:24 -07:00
progress_indicator_demo.dart Apply media padding to Gallery Material Design demos (#13593) 2017-12-15 10:13:30 -08:00
scrollable_tabs_demo.dart Added custom selection indicators to the gallery scrollable tabs demo (#15323) 2018-03-12 12:20:33 -07:00
selection_controls_demo.dart Add OutlineButton, Tristate Checkbox to Flutter Gallery (#15312) 2018-03-12 10:21:14 -07:00
slider_demo.dart Slider Visual Update (#14901) 2018-03-01 13:03:20 -08:00
snack_bar_demo.dart Apply media padding to Gallery Material Design demos (#13593) 2017-12-15 10:13:30 -08:00
tabs_demo.dart use const instead of final with const declarations (#14253) 2018-01-25 19:28:22 +01:00
tabs_fab_demo.dart enable lint prefer_single_quotes (#12665) 2017-10-22 18:11:36 +02:00
text_form_field_demo.dart Updated the gallery text fields demo (#15362) 2018-03-14 14:42:45 -07:00
tooltip_demo.dart Apply media padding to Gallery Material Design demos (#13593) 2017-12-15 10:13:30 -08:00
two_level_list_demo.dart apply upcoming lint prefer_const_literals_to_create_immutables (#14029) 2018-01-11 08:38:55 +01:00