flutter_floating 0.1.3 flutter_floating: ^0.1.3 copied to clipboard
Flutter免权限悬浮窗,支持全局、单页面悬浮,支持边缘吸附、位置保存、上下可滑动区域控制以及屏幕旋转窗口化后的位置修复等。
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_floating
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_floating: ^0.1.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_floating/button_widget.dart';
import 'package:flutter_floating/floating/assist/animation_helper.dart';
import 'package:flutter_floating/floating/assist/floating_data.dart';
import 'package:flutter_floating/floating/assist/floating_slide_type.dart';
import 'package:flutter_floating/floating/assist/hide_control.dart';
import 'package:flutter_floating/floating/floating.dart';
import 'package:flutter_floating/floating/listener/floating_listener.dart';
import 'package:flutter_floating/floating/manager/floating_manager.dart';
import 'package:flutter_floating/floating/utils/floating_log.dart';
import 'package:flutter_floating/floating/view/floating_view.dart';
import 'package:flutter_floating/floating_icon.dart';
import 'package:flutter_floating/floating_increment.dart';
import 'package:flutter_floating/main.dart';
import 'package:flutter_floating/page.dart';