mirror of
https://github.com/localsend/localsend.git
synced 2026-04-22 16:11:10 -04:00
26 lines
628 B
Dart
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)),
|
|
);
|
|
}
|
|
}
|