mirror of
https://github.com/localsend/localsend.git
synced 2026-04-18 22:18:12 -04:00
21 lines
550 B
Dart
21 lines
550 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class DeviceBadge extends StatelessWidget {
|
|
final Color color;
|
|
final String label;
|
|
|
|
const DeviceBadge({required this.color, required this.label});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
decoration: BoxDecoration(
|
|
color: color,
|
|
borderRadius: BorderRadius.circular(5),
|
|
),
|
|
child: Text(label, style: TextStyle(color: Theme.of(context).colorScheme.onInverseSurface)),
|
|
);
|
|
}
|
|
}
|