티스토리 뷰

Flutter

Introduction to widgets

아이언 베어 2020. 12. 13. 22:53

Introduction to widgets

 

Basic widgets

Flutter comes with a suite of powerful basic widgets, of which the following are commonly used:

 

 

Text

The Text widget lets you create a run of styled text within your application.

Text 위젯은 app에서 스타일이 지정된 텍스트를 사용 할 수 있게 해준다. 

 

 

Text class - widgets library - Dart API

A run of text with a single style. The Text widget displays a string of text with single style. The string might break across multiple lines or might all be displayed on the same line depending on the layout constraints. The style argument is optional. Whe

api.flutter.dev

 

Row, Column

These flex widgets let you create flexible layouts in both the horizontal (Row) and vertical (Column) directions. The design of these objects is based on the web’s flexbox layout model.

Row - 가로, Column - 세로의 레이아웃

 

Column class - widgets library - Dart API

A widget that displays its children in a vertical array. To cause a child to expand to fill the available vertical space, wrap the child in an Expanded widget. The Column widget does not scroll (and in general it is considered an error to have more childre

api.flutter.dev

 

 

 

 

 

'Flutter' 카테고리의 다른 글

Flutter Building layouts Tutorial  (0) 2020.12.13
Row and Column classes  (0) 2020.12.12
Flutter crossAxisAlignment property  (0) 2020.12.12
Flutter layout practice/플러터 레이아웃 연습  (0) 2020.12.12
Flutter webview/플러터 웹뷰  (0) 2020.12.12