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.
PatientApp-KKUMC/lib/widgets/input/date_picker/button_actions.dart

27 lines
614 B
Dart

import 'package:diplomaticquarterapp/widgets/Buttons/button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class ButtonActions extends StatelessWidget {
final VoidCallback onPositive;
const ButtonActions({
Key key,
@required this.onPositive,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.only(bottom: 12.0),
child: FractionallySizedBox(
widthFactor: 0.6,
child: Button(
onTap: onPositive,
label: "Confirm",
),
),
);
}
}