Преглед изворни кода

style: satisfy flow-control lint

Krasimir Kazakov пре 1 недеља
родитељ
комит
4494fa85a4
1 измењених фајлова са 5 додато и 2 уклоњено
  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,