use TextButton.icon

This commit is contained in:
Henry Hiles 2025-11-20 15:22:05 -05:00
commit c64b1da6ac
No known key found for this signature in database

View file

@ -27,12 +27,10 @@ class CodeBlock extends StatelessWidget {
style: TextStyle(fontFamily: "monospace"),
),
),
TextButton(
TextButton.icon(
onPressed: () {},
child: Row(
spacing: 4,
children: [Icon(Icons.copy), Text("Copy")],
),
icon: Icon(Icons.copy),
label: Text("Copy"),
),
],
),