You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemm-flutter-app/lib/widgets/show_card_buttton.dart

33 lines
746 B
Dart

import 'package:mohem_flutter_app/theme/colors.dart';
import 'package:mohem_flutter_app/widgets/show_fill_button.dart';
import 'package:flutter/material.dart';
class ShowCardButton extends StatelessWidget {
String title;
VoidCallback onPressed;
Color txtColor;
ShowCardButton({
required this.title,
required this.onPressed,
this.txtColor = Colors.white,
});
@override
Widget build(BuildContext context) {
return Card(
margin: EdgeInsets.zero,
elevation: 20,
child: Container(
width: double.infinity,
padding: EdgeInsets.all(12),
child: ShowFillButton(
title: title,
onPressed: onPressed,
txtColor: txtColor,
),
),
);
}
}