Skip to content

[BUG] <title> 9.1.3 is giving errors due to no longer supprted parameters flutter #1142

@jeejeestudio

Description

@jeejeestudio

Is there an existing issue for this?

  • I have searched the existing issues

Package

youtube_player_flutter

What happened?

This is what I got below. I use this package becasue the iFrame does not play the youtube clips.

../../.pub-cache/hosted/pub.dev/youtube_player_flutter-9.1.3/lib/src/widgets/progress_bar.dart:242:52: Error: The method 'withValues' isn't defined for the class 'Color'.

  • 'Color' is from 'dart:ui'.
    Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
    paint.color = colors?.backgroundColor ?? color.withValues(alpha: 0.38);
    ^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/youtube_player_flutter-9.1.3/lib/src/widgets/progress_bar.dart:259:39: Error: The method 'withValues' isn't defined for the class 'Color'.
  • 'Color' is from 'dart:ui'.
    Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
    handlePaint.color = handleColor.withValues(alpha: 0.4);

Is there a fix available?

Thanks very much!

What is the expected behaviour?

Normal build

How to reproduce?

Narwal version of Android Studio on Ubuntu Linux.
Up to date with latest Flutter and plugins and Dart.
Add to pubspec and create an Android app with it. then build it

Flutter Doctor Output

Flutter (Channel stable, 3.38.1, on Ubuntu 24.04.3 LTS 6.8.0-86-lowlatency, locale nl_NL.UTF-8) [80ms]
    • Flutter version 3.38.1 on channel stable at /home/me/snap/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b45fa18946 (2 days ago), 2025-11-12 22:09:06 -0600
    • Engine revision b5990e5ccc
    • Dart version 3.10.0
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop,
      enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file,
      enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [3,2s]
    • Android SDK at /home/me/Android/Sdk
    • Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • Java binary at: /home/me/.jdks/openjdk-24.0.2/bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 24.0.2+12-54)
    • All Android licenses accepted.

[✓] Chrome - develop for the web [16ms]
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop [2,1s]
    • Ubuntu clang version 18.1.3 (1ubuntu1)
    • cmake version 3.28.3
    • ninja version 1.11.1
    • pkg-config version 1.8.1
    • OpenGL core renderer: AMD Radeon 660M (radeonsi, rembrandt, LLVM 20.1.2, DRM 3.57, 6.8.0-86-lowlatency)
    • OpenGL core version: 4.6 (Core Profile) Mesa 25.0.7-0ubuntu0.24.04.2
    • OpenGL core shading language version: 4.60
    • OpenGL ES renderer: AMD Radeon 660M (radeonsi, rembrandt, LLVM 20.1.2, DRM 3.57, 6.8.0-86-lowlatency)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 25.0.7-0ubuntu0.24.04.2
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
    • GL_EXT_framebuffer_blit: yes
    • GL_EXT_texture_format_BGRA8888: yes

[✓] Connected device (3 available) [497ms]
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 16 (API 36) (emulator)
    • Linux (desktop)              • linux         • linux-x64      • Ubuntu 24.04.3 LTS 6.8.0-86-lowlatency
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 142.0.7444.162

[✓] Network resources [593ms]
    • All expected network resources are available.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions