Leftpad the "Lap" text
So our lines of text don't dance
This commit is contained in:
@@ -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]}'),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
Reference in New Issue
Block a user