Skip to content

Commit 82ff246

Browse files
authored
Fix Align widthFactor and heightFactor docs to allow 0 values (flutter#67334)
1 parent d2858f0 commit 82ff246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter/lib/src/widgets/basic.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,12 +1835,12 @@ class Align extends SingleChildRenderObjectWidget {
18351835

18361836
/// If non-null, sets its width to the child's width multiplied by this factor.
18371837
///
1838-
/// Can be both greater and less than 1.0 but must be positive.
1838+
/// Can be both greater and less than 1.0 but must be non-negative.
18391839
final double? widthFactor;
18401840

18411841
/// If non-null, sets its height to the child's height multiplied by this factor.
18421842
///
1843-
/// Can be both greater and less than 1.0 but must be positive.
1843+
/// Can be both greater and less than 1.0 but must be non-negative.
18441844
final double? heightFactor;
18451845

18461846
@override

0 commit comments

Comments
 (0)