30 lines
772 B
Dart
30 lines
772 B
Dart
|
|
import 'package:rogapp/theme/theme.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class RoundedSmallButton extends StatelessWidget {
|
|
final VoidCallback onTap;
|
|
final String label;
|
|
final Color backgroundColor;
|
|
final Color textColor;
|
|
|
|
const RoundedSmallButton({
|
|
super.key,
|
|
required this.onTap,
|
|
required this.label,
|
|
this.backgroundColor = Pallete.WHITE_COLOR,
|
|
this.textColor = Pallete.BACKGROUND_COLOR,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return InkWell(
|
|
onTap: onTap,
|
|
child: Chip(
|
|
label: Text(label, style: TextStyle(color: textColor, fontSize: 16),),
|
|
backgroundColor: backgroundColor,
|
|
labelPadding:const EdgeInsets.symmetric(horizontal: 10, vertical: 3),
|
|
),
|
|
);
|
|
}
|
|
} |