34 lines
833 B
Dart
34 lines
833 B
Dart
import 'package:didvan/config/theme_data.dart';
|
|
import 'package:didvan/widgets/didvan/text.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class DidvanBadge extends StatelessWidget {
|
|
final String text;
|
|
const DidvanBadge({
|
|
Key? key,
|
|
required this.text,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
height: 24,
|
|
width: 24,
|
|
decoration: BoxDecoration(
|
|
color: Theme.of(context).colorScheme.secondary,
|
|
shape: BoxShape.circle,
|
|
),
|
|
alignment: Alignment.center,
|
|
child: FittedBox(
|
|
fit: BoxFit.scaleDown,
|
|
child: DidvanText(
|
|
text,
|
|
isEnglishFont: true,
|
|
style: Theme.of(context).textTheme.overline,
|
|
color: Theme.of(context).colorScheme.white,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|