Files
rog_app/lib/screens/auth/common/uis/rounded_small_button.dart
Mohamed Nouffer a358f65853 start minimal
2023-06-02 10:50:56 +05:30

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),
),
);
}
}