Browse Source

Merge pull request #145 from ente-io/overflow_fixes

Overflow fixes
Vishnu Mohandas 3 years ago
parent
commit
caac638d73
2 changed files with 20 additions and 12 deletions
  1. 5 2
      lib/ui/file_info_dialog.dart
  2. 15 10
      lib/ui/sessions_page.dart

+ 5 - 2
lib/ui/file_info_dialog.dart

@@ -182,9 +182,12 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
         child: Row(
         child: Row(
           mainAxisAlignment: MainAxisAlignment.spaceBetween,
           mainAxisAlignment: MainAxisAlignment.spaceBetween,
           children: [
           children: [
-            Text(
-              file.getDisplayName(),
+            Flexible(
+              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),

+ 15 - 10
lib/ui/sessions_page.dart

@@ -67,18 +67,23 @@ class _SessionsPageState extends State<SessionsPage> {
                 Row(
                 Row(
                   mainAxisAlignment: MainAxisAlignment.spaceBetween,
                   mainAxisAlignment: MainAxisAlignment.spaceBetween,
                   children: [
                   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,
+                        ),
                       ),
                       ),
                     ),
                     ),
                   ],
                   ],