Publish version 1.0.3 of the library
This commit is contained in:
Родитель
452dd1ce0a
Коммит
007fe9f474
|
@ -1,3 +1,9 @@
|
|||
## 1.0.3
|
||||
|
||||
* TwoPane no longer removes display features from child panes. This allows child panes to know if the device has display features.
|
||||
* TwoPane has a new property called `allowedOverrides`. This allows for finer control over what layouts are possible on foldable devices.
|
||||
* Extension method `hinge` was added to MediaQueryData. This allows developers to use `MediaQuery.of(context).hinge` for logic related to the hinge.
|
||||
|
||||
## 1.0.2+2
|
||||
|
||||
* Removed requirement for flutter 2.11
|
||||
|
|
|
@ -24,6 +24,7 @@ class TwoPane {
|
|||
TextDirection? textDirection,
|
||||
VerticalDirection verticalDirection,
|
||||
EdgeInsets padding,
|
||||
Set<TwoPaneAllowedOverrides> allowedOverrides,
|
||||
});
|
||||
}
|
||||
```
|
||||
|
@ -38,6 +39,7 @@ Properties of TwoPane:
|
|||
- `textDirection` - When panes are laid out horizontally, this determines which one goes on the left. Behaves the same as [Flex textDirection](https://api.flutter.dev/flutter/widgets/Flex/textDirection.html)
|
||||
- `verticalDirection` - When panes are laid out vertically, this determines which one goes at the top. Behaves the same as [Flex verticalDirection](https://api.flutter.dev/flutter/widgets/Flex/verticalDirection.html)
|
||||
- `padding` - The padding between TwoPane and the edges of the screen. If there is spacing between TwoPane and the root MediaQuery, `padding` is used to correctly align the two panes to the hinge.
|
||||
- `allowedOverrides` - The parameters that TwoPane is allowed to override when a separating display feature is found. By default, it contains `paneProportion`, `direction` and `panePriority`, allowing all possible overrides.
|
||||
|
||||
> Most of the parameters provided to TwoPane are ignored when the device has a hinge. This means that you can focus on how the layout works on large screens like tablets and desktops, while also having it adapt well to the dual-screen form factor by default.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: dual_screen
|
||||
description: Foldable and dual-screen support, like the TwoPane widget and hinge angle sensor data.
|
||||
version: 1.0.2+2
|
||||
version: 1.0.3
|
||||
homepage: https://docs.microsoft.com/en-us/dual-screen/
|
||||
repository: https://github.com/microsoft/flutter-dualscreen
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче