👀

Flutterのソース、どこを見るかメモ

2022/10/30に公開約1,200字

はじめに

まずはソースにたどり着かなければならない。
場所は

flutter(binを含むフォルダ)/packages/flutter/lib/src

どこをみるか

widgets

Widget / StatelessWidget / StatefulWidget / State / InheritedWidget
→ widgets/framework.dart

Container
→ widgets/container.dart

Padding / Align / Center
→ widgets/basic.dart

Text
→ widget/text.dart

Route / Page / Navigator
→ widget/navigator.dart

material

MaterialApp
→ material/app.dart

Scaffold
→ material/scaffold.dart

AppBar
→ material/app_bar.dart

FloatingActionButton
→ material/floating_action.dart

Tab
→ material/tabs.dart

ThemeData
→ material/theme_data.dart

RawMaterialButton
→ material/button.dart

MaterialColor / Colors
→ material/colors.dart

animation

AnimationController
→ animation/animation_controller.dart

Tween
→ animation/tween.dart

Animation
→ animation/animation.dart

rendering

Constraints / RenderObject
→ rendering/object.dart

BoxConstraints
→ rendering/box.dart

FlexFit / MainAxisSize / MainAxisAlignment / CrossAxisAlignment
→ rendering/flex.dart

painting

_FlutterLogoPainter
→ painting/flutter_logo.dart

TextStyle
→ painting/text_style.dart

徐々に増えていく予定

Discussion

ログインするとコメントできます