Skip to content

'TextScaler' not found. #73

Description

@sanjaysharmajw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions