Files
wehub-resource-sync bb087aad19
CI / format (push) Failing after 2s
CI / packaging (push) Failing after 0s
CI / test (push) Failing after 3s
chore: import upstream snapshot with attribution
2026-07-13 11:58:56 +08:00

26 lines
628 B
Dart

import 'package:flutter/material.dart';
class DeviceBadge extends StatelessWidget {
final Color backgroundColor;
final Color foregroundColor;
final String label;
const DeviceBadge({
required this.backgroundColor,
required this.foregroundColor,
required this.label,
});
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 8),
decoration: BoxDecoration(
color: backgroundColor,
borderRadius: BorderRadius.circular(5),
),
child: Text(label, style: TextStyle(color: foregroundColor)),
);
}
}