Skip to content

仿旧版微信,浏览页面时侧滑添加至浮窗。

Notifications You must be signed in to change notification settings

joyin5344/flutter_floating_window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_floating_window

仿旧版微信浏览页面,侧滑添加至浮窗功能。

pub package

Screenshot

Installation

Add flutter_floating_window as a dependency in your pubspec.yaml file.

  1. Import Flutter Floating Window:
import 'package:flutter_floating_window/flutter_floating_window.dart';
  1. Init Flutter Floating Window.
var routeTable = {
  "/floating": (context) => WithFloatingPage(),
};
initFloatingWindow(
  routeTable,
);
  1. Open the page.
openFloatingWindowPage(
  context,
  '/floating',
  icon:
    'https://cdn.jsdelivr.net/gh/flutterchina/website@1.0/images/flutter-mark-square-100.png',
);

The icon shoud be a network url or an instance of ImageProvider.

About

仿旧版微信,浏览页面时侧滑添加至浮窗。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages