1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import 'package:flutter/material.dart';
class LevelInfoChip extends StatelessWidget {
final String label;
final IconData icon;
const LevelInfoChip({super.key, required this.label, required this.icon});
@override
Widget build(BuildContext context) {
return OutlinedButton(
style: ButtonStyle(
shape: WidgetStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(5)))),
minimumSize: WidgetStateProperty.all(Size(10, 10)),
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
padding: WidgetStateProperty.all(
EdgeInsets.symmetric(vertical: 4.0, horizontal: 5.0))
),
onPressed: () {},
child: Row(children: [
Icon(
icon,
size: 16,
),
SizedBox(width: 4),
Text(
label,
style: TextStyle(
fontSize: 14,
fontWeight:
FontWeight.w200), // Adjust font size for smaller appearance
),
]),
);
}
}
|