button fixes
parent
af9bd53feb
commit
10baff8d59
@ -1,16 +1,24 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'app_buttons_widget.dart';
|
||||||
|
|
||||||
class ButtonBottomSheet extends StatelessWidget {
|
class ButtonBottomSheet extends StatelessWidget {
|
||||||
|
|
||||||
final Widget child;
|
final double height;
|
||||||
|
final String buttonTitle;
|
||||||
|
final Function onPressed;
|
||||||
|
|
||||||
ButtonBottomSheet({this.child});
|
ButtonBottomSheet({@required this.height, @required this.buttonTitle, @required this.onPressed});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
|
height: height ?? null,
|
||||||
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
||||||
child: child,
|
child: AppButton(
|
||||||
|
title: buttonTitle,
|
||||||
|
onPressed: onPressed,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue