36 lines
917 B
Dart
36 lines
917 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:fluffychat/pangea/enum/use_type.dart';
|
|
|
|
class VocabLegendsListWidget extends StatelessWidget {
|
|
const VocabLegendsListWidget({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Wrap(
|
|
spacing: 16,
|
|
children: UseType.values
|
|
.where((e) => e != UseType.un)
|
|
.map(
|
|
(e) => Row(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Container(
|
|
width: 10,
|
|
height: 10,
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
color: e.color(context),
|
|
),
|
|
),
|
|
const SizedBox(width: 4),
|
|
e.iconView(context, e.color(context), 20),
|
|
],
|
|
),
|
|
)
|
|
.toList(),
|
|
);
|
|
}
|
|
}
|