import 'package:flutter/material.dart'; class SkillListTile extends StatelessWidget { const SkillListTile({ super.key, required this.name, this.percentage, }); final String name; final String? percentage; @override Widget build(BuildContext context) { return ListTile( title: Row( children: [ Expanded(flex: 2, child: Text(name)), if (percentage != null) Expanded( flex: 5, child: LinearProgressIndicator( value: double.parse(percentage!) / 100, ), ), ], ), ); } }