19 lines
494 B
Dart
19 lines
494 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:jisho_study_tool/view/components/search/search_result_page/parts/badge.dart';
|
|
|
|
class CommonBadge extends StatelessWidget {
|
|
final bool isCommon;
|
|
|
|
const CommonBadge(this.isCommon);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Badge(
|
|
Text(
|
|
"C",
|
|
style: TextStyle(color: this.isCommon ? Colors.white : Colors.transparent)
|
|
),
|
|
this.isCommon ? Colors.green : Colors.transparent
|
|
);
|
|
}
|
|
} |