• amirh's avatar
    Move the notch computation from the FAB to the BAB. (#18372) · c39f2f26
    amirh authored
    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 |
    c39f2f26
Name
Last commit
Last update
..
backdrop_demo.dart Loading commit data...
bottom_app_bar_demo.dart Loading commit data...
bottom_navigation_demo.dart Loading commit data...
buttons_demo.dart Loading commit data...
cards_demo.dart Loading commit data...
chip_demo.dart Loading commit data...
data_table_demo.dart Loading commit data...
date_and_time_picker_demo.dart Loading commit data...
dialog_demo.dart Loading commit data...
drawer_demo.dart Loading commit data...
expansion_panels_demo.dart Loading commit data...
full_screen_dialog_demo.dart Loading commit data...
grid_list_demo.dart Loading commit data...
icons_demo.dart Loading commit data...
leave_behind_demo.dart Loading commit data...
list_demo.dart Loading commit data...
material.dart Loading commit data...
menu_demo.dart Loading commit data...
modal_bottom_sheet_demo.dart Loading commit data...
overscroll_demo.dart Loading commit data...
page_selector_demo.dart Loading commit data...
persistent_bottom_sheet_demo.dart Loading commit data...
progress_indicator_demo.dart Loading commit data...
scrollable_tabs_demo.dart Loading commit data...
search_demo.dart Loading commit data...
selection_controls_demo.dart Loading commit data...
slider_demo.dart Loading commit data...
snack_bar_demo.dart Loading commit data...
tabs_demo.dart Loading commit data...
tabs_fab_demo.dart Loading commit data...
text_form_field_demo.dart Loading commit data...
tooltip_demo.dart Loading commit data...
two_level_list_demo.dart Loading commit data...