App/Flutter

Flutter & Dart- The Compelete Guide

prden 2022. 7. 4. 06:24

Flutter는 위젯으로 구성되어있다. 

Section1.( 1 ~ 15강)

How is Flutter/Dart transformed to a Native App?

Flutter & Dart - The Complete Guide [2022 Edition]

Flutter SDK로 코드를 컴파일해서 Native 코드로도 읽히게 한다. 

 

Flutter & Dart - The Complete Guide [2022 Edition]

Helpful Resources & Links

Section2.(16 ~ 58강)

Layout Widget (Column, Row...)

Column(children: [

    Text('The question!'),

    ElevatedButton(

     chlid: Text('Test'),

     onPressed: () {

      //이렇게 안 에서 함수 만들 수도 있고 밖에 만 들 수도 있다.

      print('Answer 3 chosen'); 

], )

 

//밖에서는 이렇게 만든다.

void answerQuestion() {

  print('Answer chosen!');

}

 

State

 1. StatelessWidget vs. StatefulWidget : 

Flutter & Dart - The Complete Guide [2022 Edition]

--> Container는 화면 전체에서 중앙으로 올 수 있게 해준다. 

 

Container(

     width: double.infinity, 

     child: Text(

       questionText, 

       style: TextStyle(fontSize: 28),

       textAlign: TextAlign.center,

     ), // Text

 

final vs. const (47강 re)

+a