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

info_popup 표지
패키지 상세v4.3.2

info_popup

선택한 위젯에 사용자에게 정보를 표시하는 간단한 방법입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
4.6만
좋아요
165
Pub 점수
150

패키지 설치

flutter pub add info_popup

패키지 개요

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

InfoPopup는 최소한의 설정으로 어떤 위젯에도 정보 팝업을 쉽게 표시할 수 있는 가벼운 Flutter 패키지입니다. 사용자에게 맥락 정보를 깔끔하고 사용자 정의 가능한 방식으로 제공하여 UI 요소에 직접 툴팁이나 안내를 제공함으로써 UX를 향상시킵니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원하며 장치 간 일관된 동작을 보장합니다. 단일 명령어로 간편하게 통합 가능해 미묘하지만 효과적인 사용자 피드백 메커니즘을 추가하기에 이상적입니다.

사용 사례

  • 버튼에 툴팁 표시
  • 맥락 기반 도움말 제공
  • 폼 필드 안내 개선
  • 온보딩 경험 개선
  • 상호작용 힌트 추가
  • 상태 설명 표시

주요 기능

  • 간단한 한 줄 통합
  • 사용자 정의 가능한 팝업 콘텐츠
  • 크로스 플랫폼 호환성
  • 다양한 위젯 대상을 지원합니다
  • 사용자 정의 가능한 위치 지정
  • 가볍고 빠름

적합한 대상

  • 빠른 피드백 도구를 찾는 UI/UX 디자이너
  • 교육용 앱을 개발하는 개발자
  • 접근성에 초점을 맞춘 팀
  • 직관적인 사용자 안내가 필요한 앱
  • 개발 일정이 긴 프로젝트

고려 사항

  • 기본 팝업 스타일링에 제한됨
  • 내장 애니메이션 사용자 정의 없음
  • 작은 텍스트 콘텐츠에 가장 적합
  • 수동 위치 조정이 필요할 수 있습니다
  • 복잡한 모달 상호작용에 적합하지 않음

원본 README

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

Introduction

The info_popup package allows you to easily show a simple, customizable popup on your wrapped widget. The highlight feature, which can be activated at will, helps draw the user's attention to the desired location.

You can test it now on the Info Popup preview page. Note that the website experience may be different.

Features

  • Display a customizable popup on your wrapped widget
  • Activate the highlight feature to draw the user's attention to the desired location
  • Fully customize the content of the popup
  • Add margins to the popup from any side

MainPresentation HighlightExample

Getting Started

To use this package, add info_popup as a dependency in your pubspec.yaml file.

dependencies:
  info_popup: ^3.0.0

Alternatively, you can add it to your project by running the following commands in your terminal:

with Dart:

$ dart pub add info_popup

with Flutter:

$ flutter pub add info_popup

Usage

To show a popup, wrap the widget that you want to display the popup on with the InfoPopupWidget widget. All you have to do is wrap it in the widget you want to show information with the InfoPopupWidget widget. With the InfoPopupController, you can customize it as you wish, and turn it on and off.

import 'package:info_popup/info_popup.dart';
	InfoPopupWidget(
		contentTitle: 'Info Popup Details',
		child: Icon(
			Icons.info,
			color: Colors.pink,
		),
	),

Example

This is a normal info text displayed using the InfoPopupWidget widget with several optional parameters.

              InfoPopupWidget(
                contentTitle: 'Info Popup Details',
                arrowTheme: InfoPopupArrowTheme(
                  color: Colors.pink,
                  arrowDirection: ArrowDirection.up,
                ),
                contentTheme: InfoPopupContentTheme(
                  infoContainerBackgroundColor: Colors.black,
                  infoTextStyle: TextStyle(color: Colors.white),
                  contentPadding: const EdgeInsets.all(8),
                  contentBorderRadius: BorderRadius.all(Radius.circular(10)),
                  infoTextAlign: TextAlign.center,
                ),
                dismissTriggerBehavior: PopupDismissTriggerBehavior.onTapArea,
                areaBackgroundColor: Colors.transparent,
                indicatorOffset: Offset.zero,
                contentOffset: Offset.zero,
                onControllerCreated: (controller) {
                  print('Info Popup Controller Created');
                },
                onAreaPressed: (InfoPopupController controller) {
                  print('Area Pressed');
                },
                infoPopupDismissed: () {
                  print('Info Popup Dismissed');
                },
                onLayoutMounted: (Size size) {
                  print('Info Popup Layout Mounted');
                },
                child: Icon(
                  Icons.info,
                  color: Colors.pink,
                ),
              ),

"This is a custom popup example created using the InfoPopupWidget widget.

Custom Popup Widget
              InfoPopupWidget(
                customContent: Container(
                  decoration: BoxDecoration(
                    color: Colors.blueGrey,
                    borderRadius: BorderRadius.circular(10),
                  ),
                  padding: const EdgeInsets.all(10),
                  child: Column(
                    children: const <Widget>[
                      TextField(
                        decoration: InputDecoration(
                          hintText: 'Enter your name',
                          hintStyle: TextStyle(color: Colors.white),
                          enabledBorder: OutlineInputBorder(
                            borderSide: BorderSide(color: Colors.white),
                          ),
                        ),
                      ),
                      SizedBox(height: 10),
                      Center(
                        child: Text(
                          'Example of Info Popup inside a Bottom Sheet',
                          style: TextStyle(
                            color: Colors.white,
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                arrowTheme: const InfoPopupArrowTheme(
                  color: Colors.pink,
                  arrowDirection: ArrowDirection.up,
                ),
                dismissTriggerBehavior: PopupDismissTriggerBehavior.onTapArea,
                areaBackgroundColor: Colors.transparent,
                indicatorOffset: Offset.zero,
                contentOffset: Offset.zero,
                onControllerCreated: (controller) {
                  print('Info Popup Controller Created');
                },
                onAreaPressed: (InfoPopupController controller) {
                  print('Area Pressed');
                },
                infoPopupDismissed: () {
                  print('Info Popup Dismissed');
                },
                onLayoutMounted: (Size size) {
                  print('Info Popup Layout Mounted');
                },
                child: Icon(
                  Icons.info,
                  color: Colors.pink,
                ),
              ),

Conclusion

The info_popup package provides a simple and effective way to show a customizable popup on your wrapped widget. With the highlight feature, you can draw the user's attention to the desired location.

License

This project is licensed under the MIT License - see the LICENSE file for details.

카테고리

소스 저장소

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

아직 데이터가 없습니다.