Files
Pdv-Pos/pdv/lib/core/widgets/app_button.dart
T

24 lines
469 B
Dart

import 'package:flutter/material.dart';
class AppButton extends StatelessWidget {
const AppButton({
required this.label,
required this.onPressed,
this.icon,
super.key,
});
final String label;
final VoidCallback? onPressed;
final IconData? icon;
@override
Widget build(BuildContext context) {
return FilledButton.icon(
onPressed: onPressed,
icon: Icon(icon ?? Icons.arrow_forward),
label: Text(label),
);
}
}