You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/src/css_box_widget.dart
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ class CssBoxWidget extends StatelessWidget {
9
9
super.key,
10
10
requiredthis.child,
11
11
requiredthis.style,
12
+
this.overriddenTextScaleFactor,
12
13
this.textDirection,
13
14
this.childIsReplaced =false,
14
15
this.shrinkWrap =false,
@@ -23,6 +24,7 @@ class CssBoxWidget extends StatelessWidget {
23
24
this.textDirection,
24
25
this.childIsReplaced =false,
25
26
this.shrinkWrap =false,
27
+
this.overriddenTextScaleFactor,
26
28
bool selectable =false,
27
29
TextSelectionControls? selectionControls,
28
30
ScrollPhysics? scrollPhysics,
@@ -39,6 +41,10 @@ class CssBoxWidget extends StatelessWidget {
39
41
/// The child to be rendered within the CSS Box.
40
42
finalWidget child;
41
43
44
+
/// The [overriddenTextScaleFactor] variable stores a value representing the text scale factor. This overrides the system's default text scale factor and is used to scale the text size
45
+
/// If this variable is not set, the application will use the default text scale factor provided by [MediaQuery.textScaleFactorOf].
46
+
finaldouble? overriddenTextScaleFactor;
47
+
42
48
/// The style to use to compute this box's margins/padding/box decoration/width/height/etc.
43
49
///
44
50
/// Note that this style will only apply to this box, and will not cascade to its child.
@@ -87,6 +93,11 @@ class CssBoxWidget extends StatelessWidget {
0 commit comments