flutter_floating 1.0.6 flutter_floating: ^1.0.6 copied to clipboard
Flutter免权限悬浮窗,支持全局、单页面悬浮、支持边缘吸附、位置保存、上下可滑动区域控制以及屏幕旋转窗口化后的位置修复等等。
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_floating
With Flutter:
$ flutter pub add flutter_floating
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_floating: ^1.0.6
Alternatively, your editor might support dart pub get
or 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/flating_play.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/slide_stop_type.dart';
import 'package:flutter_floating/floating/control/common_control.dart';
import 'package:flutter_floating/floating/control/scroll_position_control.dart';
import 'package:flutter_floating/floating/floating.dart';
import 'package:flutter_floating/floating/listener/event_listener.dart';
import 'package:flutter_floating/floating/manager/floating_manager.dart';
import 'package:flutter_floating/floating/manager/scroll_position_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/floating_scroll.dart';
import 'package:flutter_floating/main.dart';
import 'package:flutter_floating/page.dart';