Skip to content

Commit

Permalink
Remove textScaleFactor heroScale
Browse files Browse the repository at this point in the history
After flutter/flutter upgrade, the WidgetSpan no longer needs this correction
  • Loading branch information
moffatman committed Aug 11, 2023
1 parent 88414eb commit fac524b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/widgets/post_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ class PostRow extends StatelessWidget {
showIconInCorner: (
backgroundColor: theme.backgroundColor,
borderColor: theme.primaryColorWithBrightness(0.2)
),
heroScale: MediaQuery.textScaleFactorOf(context)
)
)
),
onPressed: () {
Expand Down
3 changes: 1 addition & 2 deletions lib/widgets/thread_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ class ThreadRow extends StatelessWidget {
showIconInCorner: (
backgroundColor: backgroundColor,
borderColor: borderColor
),
heroScale: MediaQuery.textScaleFactorOf(context)
)
)
)
)
Expand Down

0 comments on commit fac524b

Please sign in to comment.