Skip to main content

flutter_overlay_window 1.0.2 copy "flutter_overlay_window: ^1.0.2" to clipboard
flutter_overlay_window: ^1.0.2 copied to clipboard

PlatformAndroid

Flutter plugin for displaying your flutter app over other apps on the screen

1.0.2 #

Features #

  • Add getScreenSize: returns the real screen width and height in dp as an OverlayPosition, useful for positioning the overlay relative to screen edges since MediaQuery is unavailable in the overlay isolate (#202)
  • Add setOverlayVisible: show or hide the overlay window without stopping the overlay service, keeping its position and size while hidden

1.0.1 #

Features #

  • Add drag-to-dismiss via dismissConfig on showOverlay: a target appears at the bottom of the screen while dragging, and dropping the overlay on it closes the overlay (#196)
  • Add OverlayDismissConfig to customize the dismiss target: size, bottomMargin, shape (circle or rectangle), borderRadius, backgroundColor, iconColor, iconSize, iconStrokeWidth, borderWidth, borderColor, a custom drawable icon, and hover feedback (activeBackgroundColor, activeIconColor, activeBorderColor, activeScale, hapticFeedback). Colors are regular Flutter Color values

Fixes #

  • Improve overlay drag handling with sub-pixel accuracy for smoother position updates (#197)
  • Use the system touch slop as the drag threshold (#193)

1.0.0 #

Features #

  • Add notificationIcon to showOverlay: use any drawable or mipmap resource from your app as the notification icon (#173, #174)
  • Add updateNotification: change the notification title, content or icon while the overlay is showing
  • Overlay now respects the status and navigation bars and stays within the visible screen

Fixes #

  • Fix requestPermission() never completing after the user grants permission (#187)
  • Fix requestPermission() hanging after a screen rotation while the settings page is open
  • Fix requestPermission() returning true without asking on Android 6 and 7
  • requestPermission() now returns true immediately when permission is already granted
  • requestPermission() returns a NO_ACTIVITY error instead of crashing when no activity is attached
  • Fix other method calls overwriting a pending requestPermission() result
  • Fix crash when the permission result arrives with no pending request
  • Fix overlay drag issues and smoother snap animation
  • Fix position calculation for centered overlays
  • A missing notification icon falls back to the launcher icon instead of crashing the service

Build #

  • Upgrade to Android Gradle Plugin 9 and Gradle 9.1
  • Java 17 is now required

Example #

  • Add buttons to test the custom notification icon and updateNotification

0.5.0 #

  • Update gradle version
  • Fix NullPointerException in OverlayService

0.4.5 #

  • Added instructions for android 14 compatibility

0.4.4 #

  • Fix overlay close crash
  • Add startPosition: start overlay in default position
  • Add moveOverlay: Update the overlay position in the screen
  • Add getOverlayPosition: Get the current overlay position

0.4.3 #

  • Fix overlay height bug

0.4.2 #

  • Fix touch freeze

0.4.1 #

  • Remove secure flag
  • Detach view from engine after closing
  • Fix Example to show (Sending data between Main & overlay)

0.3.3 #

  • Fix bugs related to android 12+
  • Some code optimizations
  • Fix overlay popup on top of status bar
  • Fix overlay closing

0.3.2 #

  • Add the position gravity feature

0.3.1 #

  • Fix the overlay permission on Android versions <= 6
  • Add the possibility to resize overlay while it's in action

0.2.9 #

  • Fix closing overlay
  • Possibility to check if the overlay is active or not

0.2.8 #

  • Change overlay flags names

0.2.7 #

  • Fix overlay issue to target all SDK versions
  • Add overlayTitle and overlayContent arguments
  • Fix typo

0.2.2 #

  • Add custom notification content text
  • Improve the flagNotFocusable
  • Update example

0.2.1 #

  • Add flag update on runtime

0.0.2 #

  • Fix keyboard not showing on TextFields

0.0.1 #

  • Initial release
530
likes
160
points
16.5k
downloads

Documentation

API reference

Publisher

verified publisheriheb.tech

Weekly Downloads

Flutter plugin for displaying your flutter app over other apps on the screen

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_overlay_window

Packages that implement flutter_overlay_window