Expanded
-
Flutter - 코로나 어플 만들기 [2]Flutter 2021. 1. 24. 10:24
1. Material App 디자인 하기 Theme에 기본 색들을 지정한다. class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: '코로나 현황', theme: ThemeData( primaryColor: const Color(0xFF264653), primaryColorDark: const Color(0xFF2A9D8F), primaryColorLight: const Color(0xFFE9C46A), accentColor: const Color(0xFFF4A261), bac..
-
Flutter - Layout 만들기(1) (Container, Center, Row, Column, Expanded) [4]Flutter 2021. 1. 1. 13:53
1. Center void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Welcome to Flutter', home: MainPage(), ); } } class MainPage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( leading: Icon(Icons.menu), title: Text('MainPage'), actions: [ Icon(Icons.se..