mirror of
https://github.com/londonappbrewery/Flutter-Course-Resources/
synced 2024-11-15 05:44:55 +00:00
30 lines
741 B
Dart
30 lines
741 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:bmi_calculator/constants.dart';
|
|
|
|
class BottomButton extends StatelessWidget {
|
|
BottomButton({@required this.onTap, @required this.buttonTitle});
|
|
|
|
final Function onTap;
|
|
final String buttonTitle;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GestureDetector(
|
|
onTap: onTap,
|
|
child: Container(
|
|
child: Center(
|
|
child: Text(
|
|
buttonTitle,
|
|
style: kLargeButtonTextStyle,
|
|
),
|
|
),
|
|
color: kBottomContainerColour,
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
padding: EdgeInsets.only(bottom: 20.0),
|
|
width: double.infinity,
|
|
height: kBottomContainerHeight,
|
|
),
|
|
);
|
|
}
|
|
}
|