build method

  1. @override
Widget build(
  1. BuildContext context,
  2. IPermissionListViewModel viewModel
)
override

Implementation

@override
Widget build(BuildContext context, IPermissionListViewModel viewModel) {
  return WillPopScope(
      child: Scaffold(
        backgroundColor: color ?? Colors.white,
        appBar: AppBar(
            backgroundColor: color ?? Colors.white,
            automaticallyImplyLeading: false,
            iconTheme: IconThemeData(color: Colors.blueGrey.shade700),
            elevation: 0,
            actions: _buildActions(context, viewModel)),
        body: SafeArea(
          child: SingleChildScrollView(
            child: Column(
              children: _buildList(context, viewModel),
            ),
          ),
        ),
      ),
      onWillPop: () async => false);
}