Open
Description
Describe the bug
When I build my App. I get these lines of error
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:114:29: Error: The getter 'a' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'.
bool get isTransparent => a == 0;
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:22: Error: The getter 'r' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'r'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:27: Error: The getter 'r' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'r'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:34: Error: The getter 'g' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'g'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:39: Error: The getter 'g' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'g'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:46: Error: The getter 'b' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:51: Error: The getter 'b' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:58: Error: The getter 'a' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:118:63: Error: The getter 'a' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'.
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:120:12: Error: The getter 'a' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'.
(a.toInt() << 24) | (r.toInt() << 16) | (g.toInt() << 8) | b.toInt(),
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:120:32: Error: The getter 'r' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'r'.
(a.toInt() << 24) | (r.toInt() << 16) | (g.toInt() << 8) | b.toInt(),
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:120:52: Error: The getter 'g' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'g'.
(a.toInt() << 24) | (r.toInt() << 16) | (g.toInt() << 8) | b.toInt(),
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:120:70: Error: The getter 'b' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
(a.toInt() << 24) | (r.toInt() << 16) | (g.toInt() << 8) | b.toInt(),
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:155:10: Error: The getter 'a' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'.
'${a.round().toRadixString(16).padLeft(2, '0')}'
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:156:10: Error: The getter 'r' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'r'.
'${r.round().toRadixString(16).padLeft(2, '0')}'
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:157:10: Error: The getter 'g' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'g'.
'${g.round().toRadixString(16).padLeft(2, '0')}'
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/extensions/misc_ext.dart:158:10: Error: The getter 'b' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
'${b.round().toRadixString(16).padLeft(2, '0')}';
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/animated/animated_container.dart:204:30: 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'.
color: outlineColor?.withValues(alpha: 0.5) ??
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/container.dart:200:30: 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'.
color: outlineColor?.withValues(alpha: 0.5) ??
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/glass.dart:88: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'.
color: Colors.white.withValues(alpha: 0.3),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/glass.dart:104:42: 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'.
color: Colors.grey[100]?.withValues(alpha: opacity!),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/glass.dart:133:24: 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'.
..color = color!.withValues(alpha: 0.24)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/universal.dart:805:11: Error: 'CardThemeData' isn't a type.
final CardThemeData cardTheme = CardTheme.of(context);
^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/velocity_xx.dart:762:27: Error: The getter 'r' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'r'.
final int red = color.r.toInt();
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/velocity_xx.dart:763:29: Error: The getter 'g' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'g'.
final int green = color.g.toInt();
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/velocity_xx.dart:764:28: Error: The getter 'b' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
final int blue = color.b.toInt();
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/velocity_xx.dart:780:14: Error: The getter 'a' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'.
(color.a.toInt() << 24) |
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/velocity_xx.dart:781:18: Error: The getter 'r' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'r'.
(color.r.toInt() << 16) |
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/velocity_xx.dart:782:18: Error: The getter 'g' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'g'.
(color.g.toInt() << 8) |
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/velocity_xx.dart:783:17: Error: The getter 'b' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
color.b.toInt(),
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/velocityx_mixins/neu_mixin.dart:109:22: Error: The getter 'r' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'r'.
'r': baseColor.r.toInt(),
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/velocityx_mixins/neu_mixin.dart:110:22: Error: The getter 'g' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'g'.
'g': baseColor.g.toInt(),
^
../../../.pub-cache/hosted/pub.dev/velocity_x-4.3.1/lib/src/flutter/velocityx_mixins/neu_mixin.dart:111:22: Error: The getter 'b' isn't defined for the class 'Color'.
- 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'b'.
'b': baseColor.b.toInt()
^
Target kernel_snapshot_program failed: Exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildProdRelease'.
> Process 'command '/Users/felixdinh/fvm/versions/3.24.0/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.
> Get more help at https://help.gradle.org.
BUILD FAILED in 8s
Running Gradle task 'bundleProdRelease'... 9.0s
Gradle task bundleProdRelease failed with exit code 1
Expected behavior
Build success with no error
Desktop (please complete the following information):
- OS: Android | iOS
- Version: velocity_x: ^4.3.1
Metadata
Metadata
Assignees
Labels
No labels