[flutter] 텍스트 버튼
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar( title: Text('안녕'),),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('텍스트'),
Icon(Icons.star),
Container(child: Text('컨테이너 안이야'), color: Colors.red,),
TextButton(
child: Text('난 텍스트버튼'),
onPressed: (){
print('텍스트 버튼 눌림');
},
),
],
)
),
),
);
}
}
Author And Source
이 문제에 관하여([flutter] 텍스트 버튼), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@so_yeong/flutter-6nawyqtb저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)