-
Notifications
You must be signed in to change notification settings - Fork 352
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
姜还是 A 的辣啊
祝贺,完成了一篇,这么长长长长长长长长的文章。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
鸡蛋里面挑骨头了,A少厉害
Co-authored-by: Nayuta403 <40540394+Nayuta403@users.noreply.github.com>
Co-authored-by: Nayuta403 <40540394+Nayuta403@users.noreply.github.com>
There was a problem hiding this 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 端使用同样的代码构建应用创造了新的机会。 | |||
伴随着机会而来的,是新的挑战。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这句翻译的太棒了,喜欢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review:322
翻译得相当赞,一些小建议供 A 少参考
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A 少辛苦啦,一点建议供参考~
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 结构。 | ||
例如,你可以判断用户是否使用手持设备,来切换垂直或水平的布局: |
There was a problem hiding this comment.
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
我理解是在说用户是不是竖着拿着手机,我们要不要翻译的比较靠近它想表达的意思一点?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该是主要想说明:手持设备有更小的宽度,平板/桌面设备有更大的宽度,所以才切换水平和垂直吧
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`][] 监听键盘事件: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我去 有这么个好东西,之前做多输入框的时候卡在监听不了返回键,写了很多 tricky 的代码。。。。
* **Reduce cognitive load**—By matching the user's | ||
existing mental model, accomplishing tasks becomes intuitive, | ||
which requires less thinking, | ||
boosts productivity, and reduces frustrations. | ||
|
||
**减少认知学习成本**——与用户期望的交互进行匹配, | ||
让用户更直接地完成操作,而无需过多地思考,从而提高生产力,减少其中的顿挫感。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这段翻译的很赞
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 中。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有没有兴趣提个 PR 😂。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不是一个已经存在的功能吗~
There was a problem hiding this comment.
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>
There was a problem hiding this 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.
Co-authored-by: 杨加康 <35989475+MeandNi@users.noreply.github.com>
…#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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A 少辛苦啦,一点建议供参考~
每个平台都有其不同的行为习惯与规范, | ||
这些名义和事实上的标准将 App 会如何行为告知了用户。 | ||
在当下网络如此便利的时代,用户更倾向于更加个性化的体验, | ||
但是提供这些平台标注,依然可以带来一些显著的好处: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 会如何行为告知了用户。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 App会如何行为 感觉不太通顺
https://flutter.cn/docs/development/ui/layout/building-adaptive-apps