Fixed bug that caused the skills list to display 100% every time

This commit is contained in:
2024-12-05 15:56:46 +01:00
parent 7fac0160e0
commit c62dbbb707

View File

@@ -53,11 +53,11 @@ class ContentListTile extends StatelessWidget {
Expanded(flex: 2, child: Text(name)), Expanded(flex: 2, child: Text(name)),
const Padding(padding: EdgeInsets.only(bottom: 8)), const Padding(padding: EdgeInsets.only(bottom: 8)),
Expanded( Expanded(
flex: 5, flex: 4,
child: Padding( child: Padding(
padding: const EdgeInsets.only(left: 8.0), padding: const EdgeInsets.only(left: 8.0),
child: LinearProgressIndicator( child: LinearProgressIndicator(
value: double.tryParse(percentage) ?? 1 / 100, value: (double.tryParse(percentage) ?? 1) / 100,
), ),
), ),
), ),