Leftpad the "Lap" text

So our lines of text don't dance
This commit is contained in:
2025-03-15 00:13:47 +01:00
parent a1b577ef4c
commit 897069c08b

View File

@@ -409,7 +409,7 @@ class _MyHomePageState extends State<MyHomePage> {
itemCount: _laps.length,
itemBuilder: (context, index) {
return ListTile(
title: Text('Lap ${index + 1}: ${_laps[index]}'),
title: Text('Lap ${(index + 1).toString().padLeft(3, '0')}: ${_laps[index]}'),
);
},
),