Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: typo #432

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/chapter12/texture_platformview.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Texture({

下面我们看一下camera包自带的一个示例,它包含如下功能:

1. 可以拍照,也可以拍视频,拍摄完成后可以保存;排号的视频可以播放预览
1. 可以拍照,也可以拍视频,拍摄完成后可以保存;拍好的视频可以播放预览
2. 可以切换摄像头(前置摄像头、后置摄像头、其它)
3. 可以显示已经拍摄内容的预览图。

Expand All @@ -56,7 +56,7 @@ const Texture({
3. 构建UI。现在我们构建如图12-4的测试界面:

![12-4](../imgs/12-4.jpg)
线面是完整的代码
下面是完整的代码

```dart
import 'package:camera/camera.dart';
Expand Down Expand Up @@ -515,4 +515,4 @@ const Texture({

注意,使用PlatformView的开销是非常大的,因此,如果一个原生组件用Flutter实现的难度不大时,我们应该首选Flutter实现。

另外,PlatformView的相关功能在作者写作时还处于预览阶段,可能还会发生变化,因此,读者如果需要在项目中使用的话,应查看一下最新的文档。
另外,PlatformView的相关功能在作者写作时还处于预览阶段,可能还会发生变化,因此,读者如果需要在项目中使用的话,应查看一下最新的文档。