You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.0 KiB

// Flutter imports:
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
// Project imports:
import 'package:akuCommunity/base/base_style.dart';
class BottomButton extends StatelessWidget {
final VoidCallback onPressed;
final Widget child;
const BottomButton({
Key key,
@required this.onPressed,
@required this.child,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
color: kPrimaryColor,
padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom),
child: MaterialButton(
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
child: DefaultTextStyle(
child: child,
style: TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: 32.sp,
),
),
onPressed: onPressed,
color: kPrimaryColor,
height: 98.w,
minWidth: double.infinity,
),
);
}
}