Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'TextScaler' not found. #73

Open
sanjaysharmajw opened this issue Jun 14, 2024 · 2 comments
Open

'TextScaler' not found. #73

sanjaysharmajw opened this issue Jun 14, 2024 · 2 comments

Comments

@sanjaysharmajw
Copy link

Launching lib/Local/main2.dart on 22041219I in debug mode...
Running Gradle task 'assembleDebug'...
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:432:14: Error: Type 'TextScaler' not found.
required TextScaler textScaler,
^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:829:3: Error: Type 'TextScaler' not found.
TextScaler get textScaler => _textScaler;
^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:830:3: Error: Type 'TextScaler' not found.
TextScaler _textScaler;
^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:831:18: Error: Type 'TextScaler' not found.
set textScaler(TextScaler value) {
^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:260:35: Error: Member not found: 'MediaQuery.textScalerOf'.
final textScaler = MediaQuery.textScalerOf(context);
^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:293:35: Error: Member not found: 'MediaQuery.textScalerOf'.
final textScaler = MediaQuery.textScalerOf(context);
^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:432:14: Error: 'TextScaler' isn't a type.
required TextScaler textScaler,
^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:615:7: Error: No named parameter with the name 'textScaler'.
textScaler: textScaler,
^^^^^^^^^^
../../../Flutter/flutter3.13.5/packages/flutter/lib/src/painting/text_painter.dart:489:3: Context: Found this candidate, but the arguments don't match.
TextPainter({
^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:830:3: Error: 'TextScaler' isn't a type.
TextScaler _textScaler;
^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/audio_video_progress_bar-2.0.3/lib/audio_video_progress_bar.dart:831:18: Error: 'TextScaler' isn't a type.
set textScaler(TextScaler value) {
^^^^^^^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/sanjaysharma/Documents/Flutter/flutter3.13.5/bin/flutter'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1

@suragch
Copy link
Owner

suragch commented Jun 14, 2024

Looks like you're probably using an old version of Flutter. If you don't want to upgrade Flutter you can specify an older version of audio_video_progress_bar.

@sanjaysharmajw
Copy link
Author

Looks like you're probably using an old version of Flutter. If you don't want to upgrade Flutter you can specify an older version of audio_video_progress_bar.

ok I check it. I appreciate your prompt response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants