File tree Expand file tree Collapse file tree 4 files changed +248
-170
lines changed Expand file tree Collapse file tree 4 files changed +248
-170
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,8 @@ class _AudioPlayerState extends State<AudioPlayer> {
9191 final theme = Theme .of (context);
9292 final fontSize = DefaultTextStyle .of (context).style.fontSize ?? 14.0 ;
9393
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;
94+ final tsf = MediaQuery .textScalerOf (context);
95+ final iconSize = tsf.scale (fontSize);
9896
9997 return DecoratedBox (
10098 decoration: BoxDecoration (
@@ -191,10 +189,7 @@ class _PositionText extends StatelessWidget {
191189 return Text (
192190 text,
193191 style: TextStyle (fontSize: size),
194-
195- // TODO: remove lint ignore when our minimum Flutter version >= 3.16
196- // ignore: deprecated_member_use
197- textScaleFactor: 1 ,
192+ textScaler: TextScaler .noScaling,
198193 );
199194 },
200195 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.10 .0"
8- sdk : " >=3.0 .0 <4.0.0"
7+ flutter : " >=3.27 .0"
8+ sdk : " >=3.6 .0 <4.0.0"
99
1010dependencies :
1111 flutter :
1212 sdk : flutter
1313 flutter_widget_from_html_core : " >=0.8.0 <0.17.0"
14- just_audio : " >=0.9.0 <0. 10.0 "
14+ just_audio : ^0. 10.4
1515
1616dependency_overrides :
1717 flutter_widget_from_html_core :
@@ -21,8 +21,9 @@ dev_dependencies:
2121 flutter_test :
2222 sdk : flutter
2323 golden_toolkit : ^0.15.0
24- just_audio_platform_interface : " >=4.0.0 < 5.0.0 "
24+ just_audio_platform_interface : ^4. 5.0
2525 lint : any
26+ plugin_platform_interface : any
2627 tuple : any
2728
2829flutter :
You can’t perform that action at this time.
0 commit comments