We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ca78e commit db9fe2dCopy full SHA for db9fe2d
lib/main.dart
@@ -137,12 +137,21 @@ class _BenchmarkWidgetState extends State<BenchmarkWidget> {
137
),
138
],
139
140
- Center(
141
- child: ElevatedButton(
142
- onPressed: !benchmarkRunning ? _performBenchmark : null,
143
- child: Text("Benchmark"),
+ if (benchmarkRunning)
+ const Center(
+ child: SizedBox(
+ width: 28,
144
+ height: 28,
145
+ child: CircularProgressIndicator(strokeWidth: 3),
146
+ ),
147
+ )
148
+ else
149
+ Center(
150
+ child: ElevatedButton(
151
+ onPressed: _performBenchmark,
152
+ child: Text("Benchmark"),
153
154
- ),
155
SizedBox(height: 20),
156
157
);
0 commit comments