Skip to content

Commit 554aca6

Browse files
authored
align the closed button to right (#193)
Co-authored-by: CHANGAN SHI <>
1 parent bbaca6e commit 554aca6

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

lib/samples/edit_feature_attachments/edit_feature_attachments.dart

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,19 +173,18 @@ class _AttachmentsOptionsState extends State<AttachmentsOptions>
173173
color: Colors.white,
174174
),
175175
),
176-
IconButton(
177-
icon: const Icon(Icons.close),
178-
onPressed: () => Navigator.pop(context),
179-
),
180-
Visibility(
181-
visible: isLoading,
182-
child: const SizedBox(
176+
isLoading
177+
? const SizedBox(
183178
height: 18,
184179
width: 18,
185180
child: CircularProgressIndicator(
186181
color: Colors.white,
187182
),
188-
),
183+
)
184+
: const SizedBox.shrink(),
185+
IconButton(
186+
icon: const Icon(Icons.close),
187+
onPressed: () => Navigator.pop(context),
189188
),
190189
],
191190
),
-37.4 KB
Loading

0 commit comments

Comments
 (0)