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"), style: TextStyle(fontFamily: "monospace"),
), ),
), ),
TextButton( TextButton.icon(
onPressed: () {}, onPressed: () {},
child: Row( icon: Icon(Icons.copy),
spacing: 4, label: Text("Copy"),
children: [Icon(Icons.copy), Text("Copy")],
),
), ),
], ],
), ),