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
Browse files Browse the repository at this point in the history
  • Loading branch information
LongCatIsLooong committed Jul 20, 2023
1 parent 18f1e8e commit 1b788da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/data/gallery_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class GalleryOptions {
if (_textScaleFactor == systemTextScaleFactorOption) {
return useSentinel
? systemTextScaleFactorOption
: MediaQuery.of(context).textScaleFactor;
// ignore: deprecated_member_use
: MediaQuery.textScalerOf(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

0 comments on commit 1b788da

Please sign in to comment.