CrudUsuarioPage constructor

CrudUsuarioPage({
  1. Key? key,
})

Implementation

CrudUsuarioPage({Key? key})
    : super(
        key: key,
        inputs: [
          InputInline(colslg: 2, colssm: 1, colsmd: 2, inputs: [
            InputInColunm(inputs: [
              Input(
                name: "id",
                label: "ID",
                isPrimaryKey: true,
              ),
              Input(
                name: "descricao",
                label: "Nome Completo",
                obrigatorio: true,
              ),
              Input(
                name: "usuario",
                label: "Usuario",
                obrigatorio: true,
              ),
              Input(
                name: "id_sistema",
                label: "id_sistema",
                valorinicial: "1",
                visible: false,
              ),
              InputCheckBox(name: "admin", label: "Administrador"),
            ]),
            InputFoto(name: "foto", label: "Foto"),
          ]),
          Input(
            name: "email",
            label: "Email",
            obrigatorio: true,
          ),
          Input(name: "senha", label: "Senha", obscureText: true),
          InputLookup(
            name: "id_perfil",
            label: "Perfil",
            obrigatorio: true,
            telaPesquisa: FiltrarPerfil(isLookup: true),
          ),
          /*
          InputDados(
            name: "dados",
            label: "Ddos",
            linhas: (dados) => [
              DataCell(
                Text(dados['perfil']['id'].toString()),
              ),
              DataCell(Text(dados['perfil']['descricao']))
            ],
            identificador: ((dados) => dados['perfil']['id']),
            input: InputLookup(
              name: "perfil",
              label: "Perfil",
              telaPesquisa: FiltrarPerfil(isLookup: true),
            ),
            colunas: () => [
              const DataColumn(label: Text("ID")),
              const DataColumn(label: Text("Descricao"))
            ],
          )*/
        ],
        title: "Usuários",
        height: 700,
        width: 500,
      );