o4x / infinity_ui

A flutter plugin for remove status & navigation bar padding.
https://pub.dev/packages/infinity_ui
MIT License
6 stars 4 forks source link
android flutter flutter-plugin ui

Infinity Ui

demo

     

A flutter plugin for remove status & navigation bar padding.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Usage

void main() async { WidgetsFlutterBinding.ensureInitialized(); await InfinityUi.enable(); // you can enable it anywhere runApp(MyApp()); }

...


 * Now for get height just using `InfinityUi` class.
 ```dart
...

  @override
  Widget build(BuildContext context) {
    return Container(
        margin: EdgeInsets.only(
            bottom: InfinityUi.navigationBarHeight,
            top: InfinityUi.statusBarHeight
        ),
        width: MediaQuery.of(context).size.width,
        height: MediaQuery.of(context).size.height,
        child: child, // your code
    ),
  }

...

...



 * Check out the complete [Example](https://github.com/o4x/infinity_ui/tree/master/example)

# Enjoy full transparent navigation bar in flutter😉

![navigation](images/android-pie-navigation-bars.jpg)

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.