Merge pull request #145 from ente-io/overflow_fixes

Overflow fixes
This commit is contained in:
Vishnu Mohandas 2021-11-24 17:04:32 +05:30 committed by GitHub
commit caac638d73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 12 deletions

View file

@ -182,9 +182,12 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
file.getDisplayName(),
Flexible(
child: Text(
file.getDisplayName(),
),
),
Padding(padding: EdgeInsets.all(8)),
Icon(
Icons.edit,
color: Colors.white.withOpacity(0.85),

View file

@ -67,18 +67,23 @@ class _SessionsPageState extends State<SessionsPage> {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
session.ip,
style: TextStyle(
color: Colors.white.withOpacity(0.8),
fontSize: 14,
Flexible(
child: Text(
session.ip,
style: TextStyle(
color: Colors.white.withOpacity(0.8),
fontSize: 14,
),
),
),
Text(
getFormattedTime(lastUsedTime),
style: TextStyle(
color: Colors.white.withOpacity(0.8),
fontSize: 12,
Padding(padding: EdgeInsets.all(8)),
Flexible(
child: Text(
getFormattedTime(lastUsedTime),
style: TextStyle(
color: Colors.white.withOpacity(0.8),
fontSize: 12,
),
),
),
],