[flutter] AppBar에 제목을 추가하는 방법은 어떻게 되나요?
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Your Title Here'), // Set the title here
        ),
        body: Center(
          child: Text('Your content here'),
        ),
      ),
    );
  }
}

In this example, the title property of the AppBar is set to a Text widget with the text “Your Title Here”. This will display the title in the center of the app bar.

For more information, you can refer to the official Flutter documentation on the AppBar class: AppBar class - Flutter