use TextButton.icon
This commit is contained in:
parent
0ef8f2e5a5
commit
c64b1da6ac
1 changed files with 3 additions and 5 deletions
|
|
@ -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"),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue