flutter/examples/flutter_gallery/lib/demo/material
amirh c39f2f26f7
Move the notch computation from the FAB to the BAB. (#18372)
Move the notch computation from the FAB to the BAB.

The notch in the BAB (bottom action bar) for the FAB (floating action button) was previously kept as part of the FAB's implementation. This was done to keep the shape of the FAB and the shape of the notch coupled.
That approach resulted in a somewhat complex and 'non Fluttery' mechanism for propagating the notch computation from the FAB to the BAB.

This CL uncouples the FAB and the notch computation.
With the new API the BAB computes its overall shape including the notch using a NotchedShape delegate.

This includes multiple breaking changes:
  * Scaffold.setFloatingActionButtonNotchFor is deleted.
  * The ComputeNotch type is deleted.
  * The hasNotch property of BottomAppBar is deleted.
  * The notchMargin property of FloatingActionButton is deleted.

Quick migration guide from the previous API:

| Previous API | New API |
| ------------------|-------------|
| BottomAppBar(hasNotch: false) | BottomAppBar() |
| Using a FloatingActionButton with: BottomAppBar() / BottomAppBar(hasNotch: true) | BottomAppBar(shape: CircularNotchedRectangle()) |
| Scaffold.setFloatingActionButtonNotchFor(..) | No longer supported |
2018-06-21 15:51:21 -07:00
..
backdrop_demo.dart Fix broken asset uris (#18336) 2018-06-09 20:11:08 -07:00
bottom_app_bar_demo.dart Move the notch computation from the FAB to the BAB. (#18372) 2018-06-21 15:51:21 -07:00
bottom_navigation_demo.dart Add activeIcon property to BottomNavigationBarItem (#18125) 2018-06-07 15:42:54 -07:00
buttons_demo.dart Correct RaisedButton to OutlineButton for disabled outline example in buttons demo (#18243) 2018-06-06 17:44:07 -04:00
cards_demo.dart Fix broken asset uris (#18336) 2018-06-09 20:11:08 -07:00
chip_demo.dart Adding HSLColor and color 'within' matchers for HSVColor and HSLColor (#18294) 2018-06-18 17:11:42 -07:00
data_table_demo.dart Constants! Constants everywhere! (#9286) 2017-04-07 12:24:32 -07:00
date_and_time_picker_demo.dart Support for disabling TextField, TextFormField (#16027) 2018-03-29 07:28:22 -07:00
dialog_demo.dart Clean up the existing Navigator API. (#15718) 2018-03-22 13:21:07 -07:00
drawer_demo.dart Fix broken asset uris (#18336) 2018-06-09 20:11:08 -07:00
expansion_panels_demo.dart Revert elimination of Dart 1 (#18460) 2018-06-13 12:46:39 -07:00
full_screen_dialog_demo.dart Export @required from src/widgets/framework.dart (#17208) 2018-05-03 08:50:40 -07:00
grid_list_demo.dart Revert elimination of Dart 1 (#18460) 2018-06-13 12:46:39 -07:00
icons_demo.dart Fix RTL icons (#15095) 2018-03-21 17:58:07 -07: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 Expandable Search (#17629) 2018-05-24 09:30:37 -07:00
menu_demo.dart Docs for menus (#10396) 2017-05-31 10:48:49 -07:00
modal_bottom_sheet_demo.dart Clean up the existing Navigator API. (#15718) 2018-03-22 13:21:07 -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 Clean up the existing Navigator API. (#15718) 2018-03-22 13:21:07 -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 Extended ButtonTheme, RoundedRectangleBorder, gallery buttons demo (#15723) 2018-03-22 13:20:18 -07:00
search_demo.dart Fix broken asset uris (#18336) 2018-06-09 20:11:08 -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 update a11y for material slider (#18005) 2018-06-07 15:41:35 -07: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 Fix broken asset uris (#18336) 2018-06-09 20:11:08 -07:00
tabs_fab_demo.dart Fixed an uninitialized bool in the gallery FAB demo (#16012) 2018-03-28 07:50:00 -07:00
text_form_field_demo.dart Support for disabling TextField, TextFormField (#16027) 2018-03-29 07:28:22 -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