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"),
|
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")],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue