From c64b1da6ac17c65b1dbcec160f0d836711c73ba9 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 20 Nov 2025 15:22:05 -0500 Subject: [PATCH] use TextButton.icon --- lib/widgets/chat_page/code_block.dart | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/widgets/chat_page/code_block.dart b/lib/widgets/chat_page/code_block.dart index 2b7ee57..f407f75 100644 --- a/lib/widgets/chat_page/code_block.dart +++ b/lib/widgets/chat_page/code_block.dart @@ -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"), ), ], ),