Skip to content
pubscout

android_gesture_exclusion

0.4.0, released 2 years ago by an unverified publisher

Flutter plugin to exclude Android system gesture navigation in specific UI areas.

$ flutter pub add android_gesture_exclusion
Source repository

What it does

Wraps Android's View#getSystemGestureExclusionRects() API to prevent conflicts between system gesture navigation and app gestures. Provides a widget and an instance API to define exclusion rectangles on Android devices.

AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to prevent Android system gestures from interfering with edge‑swipe UI components
  • Your app runs on Android 10+ and uses custom gestures near screen edges

Skip it when

  • Building for iOS or other non‑Android platforms
  • You don't use edge gestures that conflict with system navigation

Strengths

  • Simple widget‑based usage
  • Works with both widget and instance APIs
  • No additional native setup required

Weaknesses

  • Android‑only functionality
  • Manual rect calculation needed for instance API

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2
Widget build(BuildContext context){
  return AndroidGestureExclusionContainer(
    verticalExclusionMargin:20,
    child:SampleWidget(),
  );
}

Alternatives

Packages that do the same job and could replace android_gesture_exclusion.

  • kf_drawer

    A customizable animated side drawer for Flutter with controller, gesture, RTL, and multi-platform support.

  • custom_interactive_viewer

    Customizable alternative to InteractiveViewer with gesture, rotation, and keyboard controls

  • syncfusion_flutter_datepicker

    A Flutter widget for selecting single dates, multiple dates, or date ranges with various calendar views.

  • splashscreen

    A customizable, theme‑aware splash screen widget with timer or future navigation and entrance animations.

Works with

Packages commonly used together with android_gesture_exclusion: ones it builds on, ones built on it, and its own family.