created content boxes
This commit is contained in:
30
lib/widgets/skill_list_tile.dart
Normal file
30
lib/widgets/skill_list_tile.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user