Skip to content

Commit db9fe2d

Browse files
committed
Minor UI improvements
1 parent e3ca78e commit db9fe2d

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

lib/main.dart

+14-5
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,21 @@ class _BenchmarkWidgetState extends State<BenchmarkWidget> {
137137
),
138138
],
139139
),
140-
Center(
141-
child: ElevatedButton(
142-
onPressed: !benchmarkRunning ? _performBenchmark : null,
143-
child: Text("Benchmark"),
140+
if (benchmarkRunning)
141+
const Center(
142+
child: SizedBox(
143+
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+
),
144154
),
145-
),
146155
SizedBox(height: 20),
147156
],
148157
);

0 commit comments

Comments
 (0)