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.
RSGDoctorApp/lib/widgets/shared/buttons/button_bottom_sheet.dart

25 lines
581 B
Dart

import 'package:flutter/material.dart';
import 'app_buttons_widget.dart';
class ButtonBottomSheet extends StatelessWidget {
final double height;
final String buttonTitle;
final Function onPressed;
ButtonBottomSheet({@required this.height, @required this.buttonTitle, @required this.onPressed});
@override
Widget build(BuildContext context) {
return Container(
height: height ?? null,
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
child: AppButton(
title: buttonTitle,
onPressed: onPressed,
),
);
}
}