diff --git a/lib/ui/file_info_dialog.dart b/lib/ui/file_info_dialog.dart index 759f0749bef3bb55f9e7c10e5e3e5c7b9772c054..6564018274f78af4e5b60d24d45f027ab05adc2e 100644 --- a/lib/ui/file_info_dialog.dart +++ b/lib/ui/file_info_dialog.dart @@ -182,9 +182,12 @@ class _FileInfoWidgetState extends State { 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), diff --git a/lib/ui/sessions_page.dart b/lib/ui/sessions_page.dart index df247547caf94cb97d31e0ecfec4d84491a9347b..1d2370e4604e141c16b941cc732fc781d230ce94 100644 --- a/lib/ui/sessions_page.dart +++ b/lib/ui/sessions_page.dart @@ -67,18 +67,23 @@ class _SessionsPageState extends State { 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, + ), ), ), ],