name27 / flutter

0 stars 0 forks source link

Button #36

Open name27 opened 1 year ago

name27 commented 1 year ago

image

DefaultTextStyle( //기본 텍스트스타일
          style: TextStyle(fontSize: 16, color: Colors.indigo),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              TextButton(
                onPressed: () {},
                child: Text('Text Button'),
              ),
              ElevatedButton(
                onPressed: () {},
                child: Text('ElevatedButton'),
              ),
              OutlinedButton(
                onPressed: () {},
                child: Text('OutlinedButton'),
              ),
              Icon(Icons.abc_sharp),
              IconButton( //Icon 위젯과 다르게기본적으로 패딩이 들어가 있다
                onPressed: () {},
                icon: Icon(Icons.abc_sharp),
              ),
              InkWell( //잉크처럼 애니메이션이 퍼지는 효과를 제공
                onTap: (){},
                child: Text('그냥 Text위젯도 이벤트를 가질 수 있나요?')
              ),
              GestureDetector( 
                onTap: (){
                  print('버튼 눌림');
                },
                child: Text('그냥 Text위젯도 이벤트를 가질 수 있나요?')
              ),
            ],
          ),
        ),