Kaynağa Gözat

style: satisfy flow-control lint

Krasimir Kazakov 1 hafta önce
ebeveyn
işleme
4494fa85a4
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      lib/features/home/widgets/shortcut_tile.dart

+ 5 - 2
lib/features/home/widgets/shortcut_tile.dart

@@ -32,10 +32,13 @@ class ShortcutTile extends StatelessWidget {
     final placeholder = !assigned;
     final iconSize = (size * 0.27).clamp(30.0, 46.0);
     final semantics = StringBuffer(title);
-    if (subtitle != null && subtitle!.isNotEmpty)
+    if (subtitle != null && subtitle!.isNotEmpty) {
       semantics.write(', $subtitle');
+    }
     semantics.write('. Tap to open.');
-    if (onLongPress != null) semantics.write(' Long press to change.');
+    if (onLongPress != null) {
+      semantics.write(' Long press to change.');
+    }
 
     return Pressable(
       onTap: onTap,