플러터 15 [플러터] Appbar 에 뒤로가기 버튼 만들기 AppBar 는 앱의 상단에 있는 바입니다. 앱바가 있기 때문에 사용자는 현재 화면의 진행사항을 직관적으로 파악하고 뒤로가기 버튼등을 사용할 수 있습니다. import 'package:flutter/material.dart'; void main() => runApp(MyApp()); /// This Widget is the main application widget. class MyApp extends StatelessWidget { static const String _title = 'Flutter Code Sample'; @override Widget build(BuildContext context) { return MaterialApp( title: _title, home: MyFirstWidget.. 2020. 5. 2. [플러터] GridView 에 대해서 GridView 란 열 수를 지정하여 그리드 형태로 표시하는 위젯입니다. GridView.count(crossAxisCount: 4, children: [ Container( color: Colors.blue, width: 100, height: 100, ), Container( color: Colors.red, width: 100, height: 100, ), Container( color: Colors.green, width: 100, height: 100, ) ], ) crossAxisCount : gridview 의 열(column) 개수입니다. 2020. 5. 1. [플러터] ListView 에 대해서 ListView 는 리스트를 표시하는 위젯입니다. ListView( scrollDirection: Axis.vertical, children: [ ListTile( leading: Icon(Icons.home), title: Text('Home'), trailing: Icon(Icons.navigate_next), onTap: (){}, ), ListTile( leading: Icon(Icons.event), title : Text("Event"), trailing: Icon(Icons.navigate_next), onLongPress: (){}, ), ListTile( leading: Icon(Icons.camera), title: Text('Camera'), trailing: Icon(Icons.na.. 2020. 5. 1. 이전 1 2 3 4 다음