File tree Expand file tree Collapse file tree 4 files changed +171
-249
lines changed Expand file tree Collapse file tree 4 files changed +171
-249
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,10 @@ class _AudioPlayerState extends State<AudioPlayer> {
9191 final theme = Theme .of (context);
9292 final fontSize = DefaultTextStyle .of (context).style.fontSize ?? 14.0 ;
9393
94- final tsf = MediaQuery .textScalerOf (context);
95- final iconSize = tsf.scale (fontSize);
94+ // TODO: remove lint ignore when our minimum Flutter version >= 3.16
95+ // ignore: deprecated_member_use
96+ final tsf = MediaQuery .textScaleFactorOf (context);
97+ final iconSize = fontSize * tsf;
9698
9799 return DecoratedBox (
98100 decoration: BoxDecoration (
@@ -189,7 +191,10 @@ class _PositionText extends StatelessWidget {
189191 return Text (
190192 text,
191193 style: TextStyle (fontSize: size),
192- textScaler: TextScaler .noScaling,
194+
195+ // TODO: remove lint ignore when our minimum Flutter version >= 3.16
196+ // ignore: deprecated_member_use
197+ textScaleFactor: 1 ,
193198 );
194199 },
195200 stream: positionStream,
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ description: WidgetFactory extension to render AUDIO with the just_audio plugin.
44homepage : https://github.com/daohoangson/flutter_widget_from_html
55
66environment :
7- flutter : " >=3.27 .0"
8- sdk : " >=3.6 .0 <4.0.0"
7+ flutter : " >=3.10 .0"
8+ sdk : " >=3.0 .0 <4.0.0"
99
1010dependencies :
1111 flutter :
1212 sdk : flutter
13- flutter_widget_from_html_core : " >=0.8.0 <0.18 .0"
14- just_audio : ^0. 10.4
13+ flutter_widget_from_html_core : " >=0.8.0 <0.17 .0"
14+ just_audio : " >=0.9.0 <0. 10.0 "
1515
1616dependency_overrides :
1717 flutter_widget_from_html_core :
@@ -21,9 +21,8 @@ dev_dependencies:
2121 flutter_test :
2222 sdk : flutter
2323 golden_toolkit : ^0.15.0
24- just_audio_platform_interface : ^4. 5.0
24+ just_audio_platform_interface : " >=4.0.0 < 5.0.0 "
2525 lint : any
26- plugin_platform_interface : any
2726 tuple : any
2827
2928flutter :
You can’t perform that action at this time.
0 commit comments