패키지, 저장소 및 앱 카테고리 검색

magnifying_glass 표지
패키지 상세v2.1.1

magnifying_glass

버럴/핀쿠션 왜곡을 갖춘 플러터 실시간 확대 렌즈 위젯.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
79
좋아요
52
Pub 점수
150

패키지 설치

flutter pub add magnifying_glass

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

magnifying_glass 패키지는 Flutter용 실시간 확대경 렌즈 위젯을 제공하며, 동적 바렐 및 핀쿠션 왜곡 효과를 갖추고 있습니다. 이미지 뷰어, 교육 도구 또는 접근성 기능과 같은 앱에서 세부 검사를 위한 어떤 콘텐츠든 상호작용식 줌을 가능하게 합니다. 이 위젯은 모바일, 웹, 데스크톱을 포함한 모든 플랫폼에서 부드러운 성능을 위해 쉐이더를 활용합니다. 사용자 정의 가능한 렌즈 크기, 줌 수준 및 위치 제어로 기존 UI에 원활하게 통합할 수 있습니다.

사용 사례

  • 인터랙티브 이미지 검사
  • 접근성 향상
  • 교육 앱 세부 정보
  • 디지털 아트 도구
  • 제품 세부 정보 확대
  • 텍스트 가독성 향상

주요 기능

  • 터치 추적을 통한 실시간 확대
  • 바렐 및 핀쿠션 왜곡 효과
  • 성능을 위한 쉐이더 기반 렌더링
  • 크로스 플랫폼 지원 (Android, iOS, Web, macOS, Windows, Linux)
  • 사용자 정의 가능한 렌즈 크기 및 줌 수준
  • 부드럽고 반응성 있는 상호작용

적합한 대상

  • 상호작용 가능한 줌 기능을 찾는 앱 개발자
  • 접근성 중심 애플리케이션
  • 디자인 및 프로토타이핑 도구
  • 교육 소프트웨어
  • 이미지 편집 유틸리티

고려 사항

  • 복잡한 배경에서 더 높은 GPU 사용률
  • 저사양 기기에서 최적화가 필요할 수 있습니다
  • 텍스트 추출 없이 시각적 확대에 제한
  • 고정밀 측정 작업에 적합하지 않습니다
  • 성능은 쉐이더의 효율에 따라 달라집니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

MagnifyingGlass Flutter plugin

Flutter real-time magnifying glass lens widget with Barrel/Pincushion distortion.

Screenshot

Buy Me A Coffee

Getting Started

Make [MagnifyingGlass] widget as the parent of the widget you wish to be used (usually MyHomePage).

    @override
    Widget build(BuildContext context) {
    MagnifyingGlassController magnifyingGlassController = MagnifyingGlassController();
    return MagnifyingGlass(
      controller: magnifyingGlassController,
      glassPosition: GlassPosition.touchPosition,
      borderThickness: 8.0,
      borderColor: Colors.grey,
      glassParams: GlassParams(
        startingPosition: Offset(150, 150),
        diameter: 150,
        distortion: 1.0,
        magnification: 1.2,
        padding: EdgeInsets.all(10),
      ),
      child: Scaffold( 
        body: ...,

        floatingActionButton: FloatingActionButton(
          onPressed: () => magnifyingGlassController.openGlass(),
          child: const Icon(Icons.search),
        ),
      )
    );

MagnifyingGlass properties

Name Type Description
controller MagnifyingGlassController Let you control the glass state and parameters:
openGlass()
closeGlass()
setDistortion( double distortion, double magnification )
setDiameter( int diameter )
refresh()
glassPosition enum enum to set the touch behavior or sticky position
glassParams GlassParams class to set lens parameters
borderColor Color border color
borderThickness double border thickness
elevation double shadow elevation
shadowOffset Offset shadow offset

GlassPosition class

Name Description
touchPosition move the glass with finger touch
topLeft sticky position to top left corner of the screen
topRight sticky position to top rigth corner of the screen
bottomLeft sticky position to bottom left corner of the screen
bottomRight sticky position to bottom right corner of the screen

GlassParams class

Name Description
startingPosition the startin glass position. If not given the lens will be placed at the center of the screen.
diameter the diameter of the glass
magnification the magnification of the lens
1 means no magnification
>1 means magnification
<1 means shrinking
distortion Barrel/Pincushion distortion power
0 means no distortion
padding the padding surrounding the glass to enlarge touching area
distorsion0.5-mag1.0.png distorsion0.5-mag1.4.png distorsion2.0-mag1.7.png
distorsion 0.5
mag 1.0
distorsion 0.5
mag 1.4
distorsion 2.0
mag 1.7

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.