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

There is a garbled character in the Japanese document #3214

Open
KobayashiYoh opened this issue Sep 18, 2024 · 0 comments · May be fixed by #3215
Open

There is a garbled character in the Japanese document #3214

KobayashiYoh opened this issue Sep 18, 2024 · 0 comments · May be fixed by #3215
Assignees

Comments

@KobayashiYoh
Copy link

Describe the bug
There is a garbled character in the Japanese document.

Reproduction code

### Getの目的

このパッケージの目的は、Routeのナビゲーション、依存オブジェクトと状態の管理のための完全なソリューションを、開発者が外部パッケージに�極力依存せずに済むような形で提供し、高度なコード分離性(デカップリング)を実現することです。それを確実なものとするため、Getはあらゆる高レベルおよび低レベルのFlutter APIを取り込んでいます。これによりビューとロジックを切り分けることが容易になり、UIチームにはWidgetの構築に集中してもらい、ビジネスロジック担当チームにはロジックに集中してもらうことができます。Getを使うことでよりクリーンな作業環境を構築することができるのです。

要するに、initState内でメソッドを呼び出してパラメーターを通じてControllerにデータを送信する必要も、そのためにControllerのコンストラクタを使用する必要もありません。Getには必要なタイミングでサービスを呼び出してくれう onInit() メソッドがあります。
Controllerが不要になれば、onClose() メソッドがジャストなタイミングでメモリから破棄してくれます。これにより、ビューとビジネスロジックを分離することができるのです。

GetxController 内に dispose() メソッドがあっても何も起こらないので記述しないでください。ControllerはWidgetではないので「dispose」できません。たとえばController内でStreamを使用していてそれを閉じたい場合は、以下のように onClose() メソッドにコードを記述してください。

To Reproduce
Steps to reproduce the behavior:
Go to https://github.com/jonataslaw/getx/blob/master/documentation/ja_JP/state_management.md#get%E3%81%AE%E7%9B%AE%E7%9A%84

Screenshots

スクリーンショット 2024-09-18 21 13 25 スクリーンショット 2024-09-18 21 13 49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants