My custom button does not align at bottom center of screen and right now my custom button is centered at bottom of container. Its only part of code below. Any ideas on how I can fix so my custom button appears at bottom center of screen?
class _MainMenuState extends State<MainMenu> {
@override
Widget build(BuildContext context) {
final width = MediaQuery.of(context).size.width;
return Scaffold(
appBar: AppBar(
title: Header(text: 'Home', style: Fonts.header1),
centerTitle: true,
),
backgroundColor: ColorStyle.black,
body: Container(
alignment: Alignment.topCenter,
child: SingleChildScrollView(
child: Column(
children: <Widget>[
Util.paddingTop,
TextFieldNormal(),
Expanded(
child: Align(
alignment: Alignment.bottomCenter,
child: ButtonNormal(
text: 'Go to next screen',
width: width * 0.8,
height: 50,
color: ColorStyle.blueDark,
onPressed: () => pushNewScreen(
context,
screen: BottomNavBarWidget(
menuScreenContext: context,
),
),
),
),
),
],
),
)),
);
}
}