float_button_overlay 0.1.3 copy "float_button_overlay: ^0.1.3" to clipboard
float_button_overlay: ^0.1.3 copied to clipboard

outdated

A Flutter plugin to keep app service background visible like a Float Action Button

float_button_overlay #

A Flutter plugin to keep app service background visible like a Float Action Button

Example of Float Button Overlay #

example

Getting Started #

1- import 'package:float_button_overlay/float_button_overlay.dart';

2- call CheckPermissions method

@override
void initState() {
  super.initState();
  initPlatformState();
}

Future<void> initPlatformState() async {
  try {
    FloatButtonOverlay.checkPermissions;
  } on PlatformException {}
}

3- On Main.dart main method:

void main() async {
    WidgetsFlutterBinding.ensureInitialized();  
    FloatButtonOverlay.initialize("/path/to/icon", packageInfo.packageName, "MainActivity");
    runApp(MyApp());
}

4- Show/Hide Float Button

-Show: FloatButtonOverlay.openOverlay;
-Hide: FloatButtonOverlay.closeOverlay;

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.

30
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Flutter plugin to keep app service background visible like a Float Action Button

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on float_button_overlay