-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Roll UI design WeChat 8.3.x (#181)
- Loading branch information
Showing
8 changed files
with
544 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!-- Copyright 2019 The FlutterCandies author. All rights reserved. | ||
Use of this source code is governed by an Apache license | ||
that can be found in the LICENSE file. --> | ||
|
||
# Migration Guide | ||
|
||
This document gathered all breaking changes and migrations requirement between major versions. | ||
|
||
## Versions | ||
|
||
- [4.0.0](#400) | ||
|
||
## 4.0.0 | ||
|
||
### Summary | ||
|
||
> If you don't extend your customized `CameraPickerState` | ||
> or you didn't override below methods, you can stop reading. | ||
In order to sync the UI details with the latest WeChat style (v8.3.0), | ||
few naming or signatures of methods are changed. including: | ||
- `restartDisplayModeDisplayTimer` | ||
- `buildBackButton` | ||
- `buildCameraPreview` | ||
- `buildCaptureButton` | ||
- `buildFocusingPoint` | ||
|
||
### Details | ||
|
||
- `restartDisplayModeDisplayTimer` is renamed to `restartExposureModeDisplayTimer`. | ||
- `buildBackButton` no more requires `BoxConstraints constraints` as an argument, | ||
the signature is `Widget buildBackButton(BuildContext context)` from now on. | ||
- `buildCameraPreview` no more requires `DeviceOrientation orientation` as an argument | ||
since the implementation does not really use it. | ||
It now requires `CameraValue cameraValue` as an argument. So the signature becomes: | ||
```dart | ||
Widget buildCameraPreview({ | ||
required BuildContext context, | ||
required CameraValue cameraValue, | ||
required BoxConstraints constraints, | ||
}) | ||
``` | ||
- `buildCaptureButton` now requires `BuildContext context` as an argument. So the signature becomes: | ||
```dart | ||
Widget buildCaptureButton(BuildContext context, BoxConstraints constraints) | ||
``` | ||
- `buildFocusingPoint` now adds `int quarterTurns` to make internal quarter turns. | ||
So the signature becomes: | ||
```dart | ||
Widget buildFocusingPoint({ | ||
required CameraValue cameraValue, | ||
required BoxConstraints constraints, | ||
int quarterTurns = 0, | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.