Skip to content

Commit 9fc1fd1

Browse files
hannah-hyjguidezpl
andauthored
Update Material 3 bottom sheet (flutter#122445)
* M3 bottomsheet * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update bottom_sheet.dart * Update packages/flutter/lib/src/material/bottom_sheet.dart Co-authored-by: Pierre-Louis <[email protected]> * Update packages/flutter/lib/src/material/bottom_sheet.dart Co-authored-by: Pierre-Louis <[email protected]> * Update packages/flutter/lib/src/material/bottom_sheet.dart Co-authored-by: Pierre-Louis <[email protected]> * Update packages/flutter/lib/src/material/bottom_sheet.dart Co-authored-by: Pierre-Louis <[email protected]> * Update packages/flutter/lib/src/material/bottom_sheet.dart Co-authored-by: Pierre-Louis <[email protected]> * Update packages/flutter/lib/src/material/bottom_sheet.dart Co-authored-by: Pierre-Louis <[email protected]> * Update bottom_sheet.dart Update bottom_sheet_test.dart Update bottom_sheet.dart * showDragHandle defaults to false * fix test --------- Co-authored-by: Pierre-Louis <[email protected]>
1 parent d58be8c commit 9fc1fd1

File tree

6 files changed

+374
-15
lines changed

6 files changed

+374
-15
lines changed

dev/tools/gen_defaults/lib/bottom_sheet_template.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class _${blockName}DefaultsM3 extends BottomSheetThemeData {
1717
elevation: ${elevation("md.comp.sheet.bottom.docked.standard.container")},
1818
modalElevation: ${elevation("md.comp.sheet.bottom.docked.modal.container")},
1919
shape: ${shape("md.comp.sheet.bottom.docked.container")},
20+
constraints: const BoxConstraints(maxWidth: 640),
2021
);
2122
2223
final BuildContext context;
@@ -30,6 +31,12 @@ class _${blockName}DefaultsM3 extends BottomSheetThemeData {
3031
3132
@override
3233
Color? get shadowColor => Colors.transparent;
34+
35+
@override
36+
Color? get dragHandleColor => ${componentColor("md.comp.sheet.bottom.docked.drag-handle")};
37+
38+
@override
39+
Size? get dragHandleSize => ${size("md.comp.sheet.bottom.docked.drag-handle")};
3340
}
3441
''';
3542
}

0 commit comments

Comments
 (0)