見出し画像

Relearning Flutter ~Day 1~

別記事 "Load to Web Developer" と並行して、Flutterも学び直し。
ほとんど学習した内容のメモなので、見られることは意識せず書きます。

今回の学び直しの種は

ここ!

Flutter

Widgetについて整理

FlutterはWidgetで構成されている! アプリですらWidgetと考える。
Widget自体はimmutableなので、データの入力などはStateクラスで管理している

In Flutter, almost everything is a Widget. Even the app itself is a widget. The app's UI can be described as a widget tree.

https://docs.flutter.dev/get-started/codelab-web#observations

画面遷移について

FlutterはNavigator一本勝負!? スタック(ページが重なる)で画面遷移を管理。pushで進んで、popで戻る。popとは一番上のスタックを取り除いている。

Flutter has only one Navigator object. This widget manages Flutter's screens (also called routes or pages) inside a stack. The screen at the top of the stack is the view that is currently displayed. Pushing a new screen to this stack switches the display to that new screen. This is why the _showWelcomeScreen function pushes the WelcomeScreen onto the Navigator's stack. The user clicks the button and, voila, the welcome screen appears. Likewise, calling pop() on the Navigator returns to the previous screen. Because Flutter's navigation is integrated into the browser's navigation, this happens implicitly when clicking the browser's back arrow button.

https://docs.flutter.dev/get-started/codelab-web#observations-1

番外編

プロジェクト管理

こんなことしたいなあ = ユーザーストーリー
せなあかんなあ = バックログ
あれにはこれをせなあかんなあ = プロダクトバックログ、タスク、チケット
今はあれのこれをせなあかんなあ = スプリントバックログ

この記事が気に入ったらサポートをしてみませんか?