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