Documents

This commit is contained in:
Hillel Coren 2020-06-22 09:27:27 +03:00
parent 36fb78de1f
commit 05278a9cb7
2 changed files with 8 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class ElevatedButton extends StatelessWidget {
text: label,
alignment: MainAxisAlignment.center,
)
: Text(label),
: Text(label, overflow: TextOverflow.ellipsis),
textColor: Colors.white,
elevation: 4.0,
onPressed: () => onPressed(),

View File

@ -20,7 +20,13 @@ class IconText extends StatelessWidget {
children: <Widget>[
Icon(icon, color: style?.color),
SizedBox(width: 10),
Text(text ?? '', style: style),
Flexible(
child: Text(
text ?? '',
style: style,
overflow: TextOverflow.ellipsis,
),
),
],
);
}