Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility: Fix font sizing #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/flutter_linkify.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Linkify extends StatelessWidget {
final TextOverflow? overflow;

/// The number of font pixels for each logical pixel
final double textScaleFactor;
final double? textScaleFactor;

/// Whether the text should break at soft line breaks.
final bool softWrap;
Expand Down Expand Up @@ -88,7 +88,7 @@ class Linkify extends StatelessWidget {
this.textDirection,
this.maxLines,
this.overflow = TextOverflow.clip,
this.textScaleFactor = 1.0,
this.textScaleFactor = null,
this.softWrap = true,
this.strutStyle,
this.locale,
Expand Down Expand Up @@ -138,7 +138,7 @@ class SelectableLinkify extends StatelessWidget {
final String text;

/// The number of font pixels for each logical pixel
final double textScaleFactor;
final double? textScaleFactor;

/// Linkifiers to be used for linkify
final List<Linkifier> linkifiers;
Expand Down Expand Up @@ -242,7 +242,7 @@ class SelectableLinkify extends StatelessWidget {
this.maxLines,
// SelectableText
this.focusNode,
this.textScaleFactor = 1.0,
this.textScaleFactor = null,
this.strutStyle,
this.showCursor = false,
this.autofocus = false,
Expand Down