Coder Social home page Coder Social logo

soska12 / flutter_home_indicator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rainwayapp/flutter_home_indicator

1.0 1.0 2.0 82 KB

Flutter plugin to show/hide the iPhone X home indicator.

License: Other

Kotlin 10.26% Ruby 25.36% Swift 3.35% Objective-C 21.93% Dart 39.10%

flutter_home_indicator's Introduction

home_indicator

Flutter plugin to show/hide the iPhone X home indicator.

Also features an API to "defer" screen edges, i.e. require a second swipe-in from the top/bottom/left/right before OS behavior is triggered. This is how you "grey out" the home indicator.

Warning: It appears "deferring" the bottom screen edge does not successfully prevent a "home swipe" when the home indicator is also hidden. That is: if you need the behavior of HomeIndicator.deferScreenEdges([ScreenEdge.bottom]), then don't also call HomeIndicator.hide().

On Android, this plugin does nothing, and isHidden always returns true.

Usage

import 'package:home_indicator/home_indicator.dart';

await HomeIndicator.hide();
await HomeIndicator.show();
final result = await HomeIndicator.isHidden();
await HomeIndicator.deferScreenEdges([ScreenEdge.bottom]); // Grey it out

Notes

  • Even after calling HomeIndicator.hide(), the home indicator will show up when the user gestures near the bottom of the screen. This behavior is impossible to override.

flutter_home_indicator's People

Contributors

lynn avatar soska12 avatar

Stargazers

Csongor Keller avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.