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

[完成翻译] src/docs/development/ui/layout/building-adaptive-apps.md #904

Merged
merged 14 commits into from
Aug 18, 2021

Conversation

AlexV525
Copy link
Member

@AlexV525 AlexV525 commented Jun 22, 2021

@AlexV525 AlexV525 added D: 7 - 10 天 任务预计 7 - 10 天完成 S: 用户界面 (UI) 内容分类 Review: 30~45分钟 The PR can be reviewed from 30 to 45 minutes. labels Jun 22, 2021
@AlexV525 AlexV525 marked this pull request as draft June 22, 2021 10:28
Copy link
Member

@Nayuta403 Nayuta403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

姜还是 A 的辣啊

src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
# Conflicts:
#	src/docs/development/ui/layout/building-adaptive-apps.md
@AlexV525 AlexV525 marked this pull request as ready for review August 3, 2021 09:57
@AlexV525 AlexV525 requested a review from a team August 3, 2021 09:57
@chenglu
Copy link
Member

chenglu commented Aug 3, 2021

祝贺,完成了一篇,这么长长长长长长长长的文章。

Copy link
Member

@Nayuta403 Nayuta403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

鸡蛋里面挑骨头了,A少厉害

src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
AlexV525 and others added 2 commits August 4, 2021 18:30
Co-authored-by: Nayuta403 <40540394+Nayuta403@users.noreply.github.com>
Co-authored-by: Nayuta403 <40540394+Nayuta403@users.noreply.github.com>
Copy link
Member

@Nayuta403 Nayuta403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@@ -14,13 +18,29 @@ ensuring a comfortable and seamless experience.
That is, you need to build apps that are not just
multiplatform, but are fully platform adaptive.

Flutter 为在移动端、桌面端和 Web 端使用同样的代码构建应用创造了新的机会。
伴随着机会而来的,是新的挑战。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这句翻译的太棒了,喜欢

Copy link
Member

@Vadaski Vadaski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review:322
翻译得相当赞,一些小建议供 A 少参考

Copy link
Member

@Vadaski Vadaski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A 少辛苦啦,一点建议供参考~

src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
You can also use screen-based breakpoints to reflow your
top-level widget trees. For example, you could switch
from a vertical to a horizontal layout when the user isn’t on a handset:

你也可以利用断点重新组织顶层的 widget 结构。
例如,你可以判断用户是否使用手持设备,来切换垂直或水平的布局:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when the user isn’t on a handset
我理解是在说用户是不是竖着拿着手机,我们要不要翻译的比较靠近它想表达的意思一点?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该是主要想说明:手持设备有更小的宽度,平板/桌面设备有更大的宽度,所以才切换水平和垂直吧

src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
If you have a single widget like a `TextField` or a `Button` that
already has a focus node, you can wrap it in a
[`RawKeyboardListener`][] and listen for keyboard events:

如果你已经有一个包含焦点的 widget,例如 `TextField` 或者 `Button`,
你可以嵌套一个 [`RawKeyboardListener`][] 监听键盘事件:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我去 有这么个好东西,之前做多输入框的时候卡在监听不了返回键,写了很多 tricky 的代码。。。。

src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
* **Reduce cognitive load**&mdash;By matching the user's
existing mental model, accomplishing tasks becomes intuitive,
which requires less thinking,
boosts productivity, and reduces frustrations.

**减少认知学习成本**&mdash;&mdash;与用户期望的交互进行匹配,
让用户更直接地完成操作,而无需过多地思考,从而提高生产力,减少其中的顿挫感。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这段翻译的很赞

src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
Currently, you can specify custom menu bar entries using
a prototype plugin, but it’s expected that this functionality will
eventually be integrated into the main SDK.

目前你可以使用一个原型插件来指定菜单栏的入口,
我们希望这个功能最终能合并到 SDK 中。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有没有兴趣提个 PR 😂。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不是一个已经存在的功能吗~

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看这意思是目前这个功能是使用插件实现的,还没合到 SDK 里面。

Co-authored-by: 杨加康 <35989475+MeandNi@users.noreply.github.com>
Copy link
Member

@MeandNi MeandNi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit.

src/docs/development/ui/layout/building-adaptive-apps.md Outdated Show resolved Hide resolved
Co-authored-by: 杨加康 <35989475+MeandNi@users.noreply.github.com>
@AlexV525 AlexV525 merged commit 178b344 into cfug:master Aug 18, 2021
@AlexV525 AlexV525 deleted the build-adaptive-apps branch August 18, 2021 08:14
AlexV525 added a commit to AlexV525/flutter.cn that referenced this pull request Aug 18, 2021
…#904)

Co-authored-by: Nayuta403 <40540394+Nayuta403@users.noreply.github.com>
Co-authored-by: Vadaski <xinlei966@gmail.com>
Co-authored-by: 杨加康 <35989475+MeandNi@users.noreply.github.com>
Copy link

@MrDgbot MrDgbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A 少辛苦啦,一点建议供参考~

每个平台都有其不同的行为习惯与规范,
这些名义和事实上的标准将 App 会如何行为告知了用户。
在当下网络如此便利的时代,用户更倾向于更加个性化的体验,
但是提供这些平台标注,依然可以带来一些显著的好处:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 平台标注 应该和上面统一为 平台标准 吧

将这些值放在样式规则里属实无用之举,
但可以考虑它们是否能从现有的值延伸(例如 `padding + 1.0`)。
你也可以留意一些有着相同意义复用的值,这些值也许可以添加到全局的样式规则里。

### Design to the strengths of each form factor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里待翻译

@@ -758,31 +1077,53 @@ users are accustomed to more customized experiences,
but reflecting these platform standards can still provide
significant benefits:

最后,我们需要为自适应应用考虑平台标准。
每个平台都有其不同的行为习惯与规范,
这些名义和事实上的标准将 App 会如何行为告知了用户。
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 App会如何行为 感觉不太通顺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D: 7 - 10 天 任务预计 7 - 10 天完成 PRI: 待润稿 Review: 30~45分钟 The PR can be reviewed from 30 to 45 minutes. S: 用户界面 (UI) 内容分类
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants