소스 검색

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,