Add clipBehavior to BoxFit doc (#68662)
This commit is contained in:
@@ -29,18 +29,27 @@ enum BoxFit {
|
||||
|
||||
/// As small as possible while still covering the entire target box.
|
||||
///
|
||||
/// {@template clip_with_box_fit}
|
||||
/// To actually clip the content, use `clipBehavior: Clip.hardEdge` alongside
|
||||
/// this in a [FittedBox].
|
||||
/// {@endtemplate}
|
||||
///
|
||||
/// 
|
||||
cover,
|
||||
|
||||
/// Make sure the full width of the source is shown, regardless of
|
||||
/// whether this means the source overflows the target box vertically.
|
||||
///
|
||||
/// {@macro clip_with_box_fit}
|
||||
///
|
||||
/// 
|
||||
fitWidth,
|
||||
|
||||
/// Make sure the full height of the source is shown, regardless of
|
||||
/// whether this means the source overflows the target box horizontally.
|
||||
///
|
||||
/// {@macro clip_with_box_fit}
|
||||
///
|
||||
/// 
|
||||
fitHeight,
|
||||
|
||||
@@ -49,6 +58,8 @@ enum BoxFit {
|
||||
///
|
||||
/// The source image is not resized.
|
||||
///
|
||||
/// {@macro clip_with_box_fit}
|
||||
///
|
||||
/// 
|
||||
none,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user