Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Supress deprecated_member_use lint (#982)
Browse files Browse the repository at this point in the history
## Description

Addresses #981. There's code
that's scaling non-text content using text scale factor so I'm not sure
what the best way to migrate those code is.

## Tests

*Please describe the tests that you added or updated to verify your
changes.*

## Issues
Fixes #

---

>**Note**: Please find the development and releasing instructions at
https://github.com/flutter/gallery#development
  • Loading branch information
LongCatIsLooong authored Jul 21, 2023
1 parent 18f1e8e commit 873b705
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/data/gallery_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class GalleryOptions {
if (_textScaleFactor == systemTextScaleFactorOption) {
return useSentinel
? systemTextScaleFactorOption
// ignore: deprecated_member_use
: MediaQuery.of(context).textScaleFactor;
} else {
return _textScaleFactor;
Expand Down Expand Up @@ -184,6 +185,7 @@ class ApplyTextOptions extends StatelessWidget {

Widget widget = MediaQuery(
data: MediaQuery.of(context).copyWith(
// ignore: deprecated_member_use
textScaleFactor: textScaleFactor,
),
child: child,
Expand Down
Binary file modified test_goldens/goldens/demo_desktop_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/demo_desktop_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/demo_mobile_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/demo_mobile_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/home_page_desktop_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/home_page_desktop_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/home_page_mobile_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/home_page_mobile_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/shrine_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test_goldens/goldens/shrine_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 873b705

Please sign in to comment.