FLUTTER ECOSYSTEM

Oauth-Celestial/image_color_picker

Oauth-Celestial/image_color_picker open-source repository details.

image_color_picker 프로젝트 이미지
Stars
1
Forks
2
최근 푸시(UTC)
2023. 5. 7.
프로젝트 상태
활성
Ravi Pai GitHub avatar
GITHUB User

Ravi Pai ↗

언어C++CMakeDartHTMLCSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • image^3.0.1
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Pick_Color

Pick_Color allows you to sample specific colors from an image and obtain their hex color code by just dragging over the image area.

pick_color

Add Dependency

pick_color : any

Usage

 Image image = Image.asset("assets/b.jpg");
 ColorPicker(
    child: image, # Your Image widget
    onChanged: (response) {
        String hexcode = response.hexCode;
        // Get Selected Color
        Color color = response.selectionColor;
        // Get Red Channel Color
        int redValue = response.redScale;
        // Get Blue Channel Color
        int blueValue = response.blueScale;
        // Get Green Channel Color
        int greenValue = response.greenScale;  
                  
});    

That's all it takes 😃

Feel Free to contribute or file an issue happy coding.