Make text selectable and thicker

This commit is contained in:
Felisp 2024-11-08 00:44:46 +01:00
parent 8fc5c206d0
commit 4350f954a0

View file

@ -22,11 +22,11 @@ class GopherText extends StatelessWidget {
return ListView.builder( return ListView.builder(
itemCount: item.data?.length, itemCount: item.data?.length,
itemBuilder: (context, int n) { itemBuilder: (context, int n) {
return Text( return SelectableText(
utf8.decode(item.data![n], allowMalformed: true), utf8.decode(item.data![n], allowMalformed: true),
style: const TextStyle( style: const TextStyle(
fontFamily: "SourceCodePro", fontFamily: "SourceCodePro",
fontWeight: FontWeight.w400, fontWeight: FontWeight.w600,
height: 1.0, height: 1.0,
// Might need to be tuned for ASCII art // Might need to be tuned for ASCII art
letterSpacing: 1, letterSpacing: 1,