Skip to content

Commit e6f79a6

Browse files
committed
Leave the windowing bridge out of the 0.2.7 package
It imports Flutter's internal windowing libraries as they are on the main channel; on stable they differ, the library does not analyze, and pub refuses the package. A .pubignore does not help, the validator analyzes all of lib/ on disk. main keeps the library.
1 parent f75c837 commit e6f79a6

5 files changed

Lines changed: 7 additions & 67 deletions

File tree

‎README-ZH.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ DragToResizeArea(
4848

4949
### 用 Flutter 渲染的第二个窗口
5050

51+
> **暂未包含在 pub.dev 的包里。** `package:nativeapi/windowing.dart` 跟随 Flutter main 通道,在 stable 上无法通过分析,
52+
> 所以 0.2.7 发布时没有带上它。要使用它,请改为依赖 [git 仓库](https://github.com/libnativeapi/nativeapi-flutter)。
53+
5154
`Window.create()` 打开的是一个不含 Flutter 视图的原生空窗口。要在第二个窗口里渲染 widget,请用 Flutter 的多窗口 API 创建窗口,再把 controller 交给 nativeapi:
5255

5356
```dart

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ Both widgets use `WindowManager.instance.getCurrent()` unless a `window` is pass
4848

4949
### Flutter-rendered secondary windows
5050

51+
> **Not in the pub.dev package yet.** `package:nativeapi/windowing.dart` follows Flutter's
52+
> main channel and does not analyze on stable, so 0.2.7 ships without it. To use it, depend
53+
> on the [git repository](https://github.com/libnativeapi/nativeapi-flutter) instead.
54+
5155
`Window.create()` opens a bare native window with no Flutter view in it. To render widgets in a second window, create it with Flutter's multi-window API and hand the controller to nativeapi:
5256

5357
```dart

‎packages/nativeapi/CHANGELOG.md‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
## Unreleased
2-
3-
* Add `package:nativeapi/windowing.dart`: `controller.nativeWindow` / `nativeWindowOf()`
4-
turn a window created with Flutter's experimental multi-window API into a nativeapi
5-
`Window`, so Flutter-rendered secondary windows can be styled, positioned and observed
6-
from Dart alone. Kept out of the main library because it needs the Flutter main channel
7-
with `--enable-windowing`.
8-
Not part of the pub.dev package yet: it does not analyze on stable Flutter, so use a git
9-
dependency for it.
10-
111
## 0.2.7
122

133
* Add `WindowCreatedEvent` and `WindowClosedEvent`. `WindowManager.addListener` now reports

‎packages/nativeapi/lib/src/windowing/flutter_window.dart‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎packages/nativeapi/lib/windowing.dart‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)