다음 Flutter 애플리케이션에서 'Click Me' 라는 텍스트와 함께 ElevatedButton을 표시할 것입니다. main.dart import 'package:flutter/material.dart' ; void main() => runApp( const MyApp()); /// main application widget class MyApp extends StatelessWidget { const MyApp({Key? key}) : super (key: key); static const String _title = 'Flutter Tutorial' ; @override Widget build(BuildContext context) { return const MaterialApp( title: _title, home: MyStatelessWidget(), ); } } /// stateless widget that the main application instantiates class MyStatelessWidget extends StatelessWidget { const MyStatelessWidget({Key? key}) : super (key: key); @override Widget build(BuildContext context) { return Scaffold( ...
댓글
댓글 쓰기