scrumlab_float_button_overlay

Creator: coderz1093

Last updated:

0 purchases

scrumlab_float_button_overlay Image
scrumlab_float_button_overlay Images
Add to Cart

Description:

scrumlab float button overlay

scrumlab_float_button_overlay #
A Flutter plugin to keep app service background visible like a Float Action Button
Example of Scrumlab Float Button Overlay #

Getting Started #
1- import 'package:scrumlab_float_button_overlay/scrumlab_float_button_overlay.dart';
2- call CheckPermissions method
@override
void initState() {
super.initState();
initPlatformState();

//Register callback functions
//The Second param is optional
FloatButtonOverlay.registerCallback(serviceCallback, onClickCallback);
}

Future<void> initPlatformState() async {
try {
FloatButtonOverlay.checkPermissions;
} on PlatformException {}
}
copied to clipboard
3- On Main.dart main method:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
}
copied to clipboard
4- Show/Hide Float Button
The openOverlay method sets: notificationTitle, notificationText, iconPath, packageName and activityName
-Show: ScrumlabFloatButtonOverlay.openOverlay(
activityName: 'MainActivity',
iconPath: file.path,
notificationText: "Float Button Overlay ☠️",
notificationTitle: 'Float Button Overlay ☠️',
packageName: packageInfo.packageName,
showTransparentCircle: true,
iconWidth: 100,
iconHeight: 100,
transpCircleHeight: 150,
transpCircleWidth: 150,
);
-Hide: ScrumlabFloatButtonOverlay.closeOverlay;
copied to clipboard
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.
by https://scrumlab.com.br

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator