Search packages, repositories and app categories

flutter_popup cover
Package detailsv3.3.9

flutter_popup

The flutter_popup package is a versatile tool for creating customizable popups in Flutter apps. Its highlight feature effectively guides user attention to specific areas

AndroidiOSWebmacOSWindowsLinux
30-day downloads
9.2K
Likes
205
Pub points
145

Install package

flutter pub add flutter_popup

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The flutter_popup package provides a flexible and customizable solution for creating popups in Flutter applications. Designed to enhance user experience, it effectively draws attention to specific UI areas, making it ideal for tutorials, alerts, or guided interactions. With support across all major platforms—including Android, iOS, Web, macOS, Windows, and Linux—it ensures consistent behavior everywhere. The package is easy to integrate via pub.dev and offers a clean API for developers to tailor popup appearance and behavior.

Use cases

  • User onboarding tutorials
  • Contextual alerts
  • Guided app walkthroughs
  • Interactive tooltips
  • Form validation hints

Key features

  • Customizable popup content
  • Cross-platform compatibility
  • Focus highlighting
  • Easy integration with pub.dev
  • Responsive design support

Suitable for

  • Developers building interactive apps
  • Teams needing onboarding features
  • Apps requiring user guidance
  • UI/UX designers working with Flutter
  • Projects targeting multiple platforms

Considerations

  • Requires careful placement to avoid obscuring key UI
  • May need additional styling for complex layouts
  • Performance impact with many concurrent popups
  • Limited built-in animations beyond basic transitions
  • Depends on correct context for proper positioning

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_popup

The flutter_popup package is a convenient tool that enables you to display a straightforward and customizable popup within your Flutter application. It offers a highlight feature that can be utilized to direct the user's attention to a specific area as needed.

Getting Started

image image image image

How to use

dependencies:
  flutter_popup: ^latest_version
import 'package:flutter_popup/flutter_popup.dart';
// easy to use
CustomPopup(
  content: Text('George says everything looks fine'),
  child: Icon(Icons.help),
),

CustomPopup(
  arrowColor: Colors.orange,
  barrierColor: Colors.green.withOpacity(0.1),
  backgroundColor: Colors.white,
  content: Text('George says everything looks fine'),
  child: Icon(Icons.help),
),

CustomPopup(
  content: _Slider(),
  position: PopupPosition.top,
  child:Text('slider'),
)

CustomPopup(
  content: Column(
  mainAxisSize: MainAxisSize.min,
    children: List.generate(5, (index) => Text('menu$index')),
  ),
  child: const Icon(Icons.add_circle_outline),
)

Container(
  decoration: BoxDecoration(color: Colors.white),
  padding: EdgeInsets.symmetric(vertical: 10),
  child: Row(
    mainAxisAlignment: MainAxisAlignment.spaceAround,
    children: [
      CustomPopup(
      showArrow: false,
      contentPadding:EdgeInsets.symmetric(horizontal: 30, vertical: 10),
      barrierColor: Colors.transparent,
      contentDecoration: BoxDecoration(color: Colors.white),
      content: SizedBox(
        width: double.infinity,
        child: Column(
          mainAxisSize: MainAxisSize.min,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: List.generate(4,(index) => Text('item$index'),),),),
            child: Text('filter1'),
          ),
              Text('filter2'),
              Text('filter3'),
        ],
  ),
)

// Show the popup programmatically
final popupKey = GlobalKey<CustomPopupState>();
// ...
CustomPopup(
  key: popupKey,
  content: Text('George says everything looks fine'),
  child: Icon(Icons.help),
);
// ...
popupKey.currentState?.show();

last

Our full-stack freelance team is opening to new projects

If you have any questions about Flutter, or if you need me to customize a Flutter application for you, please feel free to contact me: QQ: 965471570 Gmail: herowws90@gmail.com

如果您有任何关于Flutter的问题,或者需要我为您定制一个Flutter应用程序,请联系我: QQ:965471570 Gmail:herowws90@gmail.com

Categories

Source repository

Projects using this package