Skip to content

Commit 186e024

Browse files
authored
Prevent buttons from jumping to the left when loading indicator is shown (#177)
1 parent acc48d6 commit 186e024

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

current_results_ui/lib/main.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ class CurrentResultsScaffold extends StatelessWidget {
172172
}
173173

174174
if (authService.isLoading) {
175-
return const Padding(
176-
padding: EdgeInsets.symmetric(horizontal: 12.0),
177-
child: SizedBox(
178-
width: 20, // Consistent size for the indicator area
179-
height: 20,
175+
return const IconButton(
176+
icon: SizedBox(
177+
width: 24,
178+
height: 24,
180179
child: CircularProgressIndicator(strokeWidth: 2.0),
181180
),
181+
onPressed: null, // Disabled
182182
);
183183
}
184184

0 commit comments

Comments
 (0)