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

[Bug report] : there is no option to choose Pink color from palette #45

Open
maheshlalwanidev opened this issue Apr 8, 2024 · 0 comments

Comments

@maheshlalwanidev
Copy link

Version

1.5.0

Platforms

dart, Android, iOS

Device Model

iPhone Android

flutter info

Last login: Mon Apr  8 00:01:50 on ttys002
apple@MacBook-Pro-2 ~ % flutter doctor -v
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4 23E214 darwin-x64, locale
    en-GB)
    • Flutter version 3.19.5 on channel stable at
      /Users/apple/Documents/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (11 days ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/apple/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.87.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (3 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • macOS (desktop)              • macos         • darwin-x64     • macOS 14.4 23E214 darwin-x64
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 123.0.6312.107
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

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

• No issues found!

How to reproduce?

Try to drag the cursor at end of palette and choose pink color, ending point is having purple color instead of Pink one..

Logs

No response

Example code (optional)

class _ColorPickerWidgetState extends State<ColorPickerWidget> {
  // Color
  late Color _color;
  late HSVColor _hSVColor;

  void _hSVColorOnChanged(HSVColor value) {
    _updateColor(value.toColor().withAlpha(_color.alpha));
  }

  void _updateColor(Color color) {
    _color = color;
    _hSVColor = HSVColor.fromColor(color);
    widget.onChanged(color);
  }

  @override
  void initState() {
    super.initState();

    _color = widget.color;
    _hSVColor = HSVColor.fromColor(_color);
  }

  @override
  Widget build(BuildContext context) {
    return PaletteHuePicker(
      color: _hSVColor,
      paletteHeight: widget.paletteHeight ?? 280,
      hueHeight: 10,
      onChanged: (HSVColor value) => super.setState(
        () => _hSVColorOnChanged(value),
      ),
    );
  }
}

Contact

[email protected]

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

1 participant