42 lines
1012 B
Dart
42 lines
1012 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
// 장비 요약 정보 행 위젯 (SRP, 재사용성)
|
|
class EquipmentSummaryRow extends StatelessWidget {
|
|
final String label;
|
|
final String value;
|
|
|
|
const EquipmentSummaryRow({
|
|
super.key,
|
|
required this.label,
|
|
required this.value,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 6.0),
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
width: 110,
|
|
child: Text(
|
|
'$label:',
|
|
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Text(
|
|
value,
|
|
style: TextStyle(
|
|
fontSize: 15,
|
|
color: value == '정보 없음' ? Colors.grey.shade600 : Colors.black,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|