Remove unused variable

This commit is contained in:
Vishnu Mohandas 2021-03-30 17:18:08 +05:30
parent 07dee381c1
commit 2c7ae8a10f

View file

@ -28,21 +28,20 @@ class _LoginPageState extends State<LoginPage> {
@override
Widget build(BuildContext context) {
final appBar = AppBar(
title: Text(
"sign in",
style: TextStyle(
fontSize: 18,
return Scaffold(
appBar: AppBar(
title: Text(
"sign in",
style: TextStyle(
fontSize: 18,
),
),
),
);
return Scaffold(
appBar: appBar,
body: _getBody(appBar.preferredSize.height),
body: _getBody(),
);
}
Widget _getBody(final appBarSize) {
Widget _getBody() {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisAlignment: MainAxisAlignment.center,