build method

Dialog build(
  1. dynamic context, {
  2. String? username,
})

Implementation

Dialog build(
  context, {
  String? username,
}) =>
    Dialog(child: Builder(
        // Create an inner BuildContext so that the onPressed methods
        // can refer to the Scaffold with Scaffold.of().
        builder: (BuildContext context) {
      return Container(
        padding: const EdgeInsets.all(16.0),
        child: ListView(
          shrinkWrap: true,
          children: <Widget>[
            _getHeader(),
            _getForm(username: username),
            _getLoginButton(context),
            _getResetPasswordButton(context),
            if (CarpService()._app!.uri.path.isNotEmpty)
              _getEnvironmentText(context),
          ],
        ),
      );
    }));