Skip to content
Snippets Groups Projects
Commit ea146c7c authored by vjrj's avatar vjrj
Browse files

Fix card terminal overflow error

parent 9411a089
No related branches found
No related tags found
No related merge requests found
...@@ -58,29 +58,27 @@ class CardTerminalScreen extends StatelessWidget { ...@@ -58,29 +58,27 @@ class CardTerminalScreen extends StatelessWidget {
child: CardTerminalStatus(online: true)), child: CardTerminalStatus(online: true)),
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 10), padding: const EdgeInsets.symmetric(horizontal: 10),
child: Flexible( child: Text(
child: Text( amount,
amount, textAlign: TextAlign.right,
textAlign: TextAlign.right, style: TextStyle(
style: TextStyle( fontFamily: 'LCDMono',
fontFamily: 'LCDMono', color: Colors.white,
color: Colors.white, fontSize: amount.length < 5
fontSize: amount.length < 5 ? 28
? 28 : amount.length < 10
: amount.length < 10 ? 20
? 20 : amount.length < 15
: amount.length < 15 ? 14
? 14 : 12,
: 12, shadows: <Shadow>[
shadows: <Shadow>[ Shadow(
Shadow( offset: const Offset(1, 1),
offset: const Offset(1, 1), blurRadius: 3,
blurRadius: 3, color: Colors.black.withOpacity(0.4),
color: Colors.black.withOpacity(0.4), ),
), ],
], //softWrap: true, // Agrega esta línea para permitir que el texto se envuelva a la siguiente línea
//softWrap: true, // Agrega esta línea para permitir que el texto se envuelva a la siguiente línea
),
), ),
), ),
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment