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( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Flexible(
child: Text(
file.getDisplayName(), file.getDisplayName(),
), ),
),
Padding(padding: EdgeInsets.all(8)),
Icon( Icon(
Icons.edit, Icons.edit,
color: Colors.white.withOpacity(0.85), color: Colors.white.withOpacity(0.85),

View file

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