build method
Implementation
@override
Widget build(BuildContext context, IPermissionViewModel viewModel) {
return WillPopScope(
child: Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
iconTheme: IconThemeData(color: Colors.blueGrey.shade700),
elevation: 0,
backgroundColor: Colors.white,
automaticallyImplyLeading: false,
actions: [..._buildSkip(context, viewModel)],
),
body: SafeArea(
child: Container(
padding: EdgeInsets.symmetric(horizontal: 16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Spacer(flex: 1),
viewModel.icon(size: 60),
Container(
margin: EdgeInsets.symmetric(vertical: 8),
child: Text(viewModel.title,
style: TextStyle(
fontSize: 28, color: Colors.grey.shade700))),
Expanded(
flex: 2,
child: Center(
child: Text(
viewModel.description,
style: TextStyle(
fontSize: 16, color: Colors.grey.shade900),
))),
_errorMessage(viewModel),
_buildButton(context, viewModel),
]),
),
),
),
onWillPop: () async => false);
}