import 'package:flutter/material.dart';


void main() {
runApp(
MaterialApp(
home: SafeArea(
child: Scaffold(
appBar: AppBar(
backgroundColor: Colors.blue,
title: const Text("Tự học lập trình"),
),
body: const Mywidget())),
debugShowCheckedModeBanner: false,
),
);
}

class Mywidget extends StatelessWidget {
const Mywidget({super.key});

@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.fromLTRB(20, 20, 20, 20),
child: TextButton(
onPressed: () {
// ignore: avoid_print
print('Đã click');
},
style: TextButton.styleFrom(
backgroundColor: Colors.blue,
foregroundColor: Colors.white,
// minimumSize: const Size(120, 60),
padding: const EdgeInsets.fromLTRB(30, 10, 30, 10),
),
child: const Text(
'Hãy click',
style: TextStyle(
fontSize: 15,
),
)),
);
}
}