Do Widgets tutorial #1

Merged
kornerr merged 15 commits from tutorial into master 2026-06-04 17:59:51 +02:00
Showing only changes of commit 57de3d9b21 - Show all commits

View File

@@ -119,7 +119,7 @@ class Tile extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return AnimatedContainer(
child: Center( child: Center(
child: Text( child: Text(
letter.toUpperCase(), letter.toUpperCase(),
@@ -130,6 +130,7 @@ class Tile extends StatelessWidget {
border: Border.all(color: Colors.grey.shade300), border: Border.all(color: Colors.grey.shade300),
color: tutTileColor(hitType), color: tutTileColor(hitType),
), ),
duration: Duration(milliseconds: 300),
height: 60, height: 60,
width: 60, width: 60,
); );