나의 발자취
Flutter:: 프로젝트 시작 본문
change color
set default similator to iOS -> 그냥 계속 실행해보니까 되었음
change color and press Shift + Command + F5 to restart
// Dart
// Copyright 2018 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
backgroundColor: Color.fromARGB(255, 38, 160, 154),
title: const Text('Welcome to Flutter'),
),
body: const Center(
child: Text(
'I love flutter!',
style: TextStyle(fontWeight: FontWeight.bold),),
),
),
);
}
}
// 사용된 위젯: MaterialApp, Scaffold, Appbar, Text, Center
Comments