build method
Implementation
@override
Widget build(BuildContext context, ILoginViewModel viewModel) {
return Scaffold(
appBar: AppBar(
backgroundColor: appbarColor ?? Colors.white,
elevation: 0,
automaticallyImplyLeading: true,
iconTheme: IconThemeData(color: Colors.blueGrey.shade700),
),
backgroundColor: backgroundColors ?? Colors.white,
body: SafeArea(
child: Container(
alignment: Alignment.center,
child:
Column(crossAxisAlignment: CrossAxisAlignment.center, children: [
Spacer(flex: 1),
_buildImage(logoApp, width: 200),
Expanded(
flex: 2,
child: IndexedStack(index: _index(viewModel), children: [
Container(),
_buildError(viewModel),
_buildProgress(viewModel),
]),
),
_buildButtons(viewModel),
_buildImage(logoCompany, width: 100),
SizedBox(height: 16),
]),
),
),
);
}