mchome / flutter_colorpicker

HSV(HSB)/HSL/RGB/Material color picker inspired by all the good design for your amazing flutter apps.
https://pub.dev/packages/flutter_colorpicker
MIT License
350 stars 203 forks source link

whenever i add this library to the code i got this error #73

Closed Yash-Hingu closed 2 years ago

Yash-Hingu commented 2 years ago

../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-1.0.3/lib/src/palette.dart:1055:15: Error: No named parameter with the name 'label'. label: widget.embeddedText ? const Text('Hex') : null, ^^^^^ ../../snap/flutter/common/flutter/packages/flutter/lib/src/material/input_decorator.dart:2517:9: Context: Found this candidate, but the arguments don't match. const InputDecoration({ ^^^^^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-1.0.3/lib/src/material_picker.dart:137:27: Error: No named parameter with the name 'dragDevices'. .copyWith(dragDevices: PointerDeviceKind.values.toSet()), ^^^^^^^^^^^ ../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-1.0.3/lib/src/material_picker.dart:200:23: Error: No named parameter with the name 'dragDevices'. .copyWith(dragDevices: PointerDeviceKind.values.toSet()), ^^^^^^^^^^^

mchome commented 2 years ago

Upgrade your flutter sdk version to 2.5 or up.