Skip to content

Commit

Permalink
Replaced textScaleFactor to textScaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Cheow committed Jan 9, 2024
1 parent 3d35b1f commit 759d441
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/src/flutter/rich_text.dart
Expand Up @@ -470,7 +470,8 @@ class VxRichText extends VxWidgetBuilder<Widget>
key: key,
textAlign: _textAlign,
maxLines: _maxLines,
textScaleFactor: _scaleFactor,
textScaler:
_scaleFactor == null ? null : TextScaler.linear(_scaleFactor!),
softWrap: _softWrap ?? true,
overflow: _overflow ?? TextOverflow.clip,
strutStyle: _strutStyle,
Expand Down
3 changes: 2 additions & 1 deletion lib/src/flutter/selectable_text.dart
Expand Up @@ -369,7 +369,8 @@ class VxSelectableTextBuilder extends VxWidgetBuilder<SelectableText>
onTap: _onTap as void Function()?,
enableInteractiveSelection: true,
showCursor: _showCursor ?? false,
textScaleFactor: _scaleFactor,
textScaler:
_scaleFactor == null ? null : TextScaler.linear(_scaleFactor!),
style: _themedStyle?.merge(ts) ?? _textStyle?.merge(ts) ?? ts,
strutStyle: _strutStyle,
contextMenuBuilder: _contextMenuBuilder,
Expand Down
3 changes: 2 additions & 1 deletion lib/src/flutter/text.dart
Expand Up @@ -508,7 +508,8 @@ class VxTextBuilder extends VxWidgetBuilder<Widget>
key: key,
textAlign: _textAlign,
maxLines: _maxLines,
textScaleFactor: _scaleFactor,
textScaler:
_scaleFactor == null ? null : TextScaler.linear(_scaleFactor!),
style: _themedStyle?.merge(ts) ?? _textStyle?.merge(ts) ?? ts,
softWrap: _softWrap ?? true,
overflow: _overflow ?? TextOverflow.clip,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/flutter/timeline/timeline_view.dart
Expand Up @@ -85,7 +85,7 @@ class VxTimelineView extends StatelessWidget {
style: TextStyle(
color: descriptionColor ?? Colors.black,
),
textScaleFactor: 1.25,
textScaler: const TextScaler.linear(1.25),
),
)
],
Expand Down

0 comments on commit 759d441

Please sign in to comment.