MaterialApp
예제
기본 MaterialApp 구현
import 'package:flutter/material.dart';
void main() => runApp(TestApp());
class TestApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: '테스트 앱',
home: Scaffold(
appBar: AppBar(
title: Text('타이틀'),
),
body: Center(
child: Text('중앙 텍스트'),
),
),
);
}
}