커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
Can only create a "registers" document via an Authentication action."
[왕초보] 노코드로 수익형 AI 앱 만들기 v0
기타
북마크
박*선
댓글
1
추천
0
조회수
2
조회수
2
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



"Can only create a "registers" document via an Authentication action." 앱을 하나 만드는 중인데 이런 에러가 난 후 다음 단계로 진행이 안됩니다. 어떻게 해야하나요?


스파르타 즉문즉답


Padding(
  padding: EdgeInsetsDirectional.fromSTEB(16.0, 12.0, 16.0, 12.0),
  child: FFButtonWidget(
    onPressed: () async {
      await RegistersRecord.collection.doc().set(createRegistersRecordData(
            passportNumber: _model.passportNumTextController.text,
            country: _model.countrySelValue,
            phoneNumber: _model.phoneNumberTextController.text,
            email: _model.emailTextController.text,
            visitedKorea: _model.pastKoreaBuValue,
            otherVisited: _model.otherVisitedValue,
            job: _model.jobDrValue,
            disease: _model.diseaseRadioValue,
            arrested: _model.diseaseRadioValue,
            gender: _model.genderValue,
            otherCitizen: _model.citizenRaValue,
            createdTime: getCurrentTimestamp,
          ));
    },
    text: FFLocalizations.of(context).getText(
      'scckp7mm' /* Submit Form */,
    ),
    options: FFButtonOptions(
      width: double.infinity,
      height: 48.0,
      padding: EdgeInsetsDirectional.fromSTEB(24.0, 0.0, 24.0, 0.0),
      iconPadding: EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
      color: FlutterFlowTheme.of(context).secondary,
      textStyle: FlutterFlowTheme.of(context).titleSmall.override(
            fontFamily: 'Figtree',
            color: Colors.white,
            fontSize: 16.0,
            letterSpacing: 0.0,
            fontWeight: FontWeight.w500,
          ),
      elevation: 3.0,
      borderSide: BorderSide(
        color: FlutterFlowTheme.of(context).success,
        width: 1.0,
      ),
      borderRadius: BorderRadius.circular(8.0),
    ),
  ),
)



취소
 공유
취소
댓글 0
댓글 알림
나의얼굴