본문 바로가기 메뉴 바로가기

순진이의 순진한 하루

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

순진이의 순진한 하루

검색하기 폼
  • 분류 전체보기 (100)
    • 순진이의 하루 (23)
      • study정리 (16)
    • swift (10)
    • iOS 기초 (11)
    • iOS 개발자 되기 (29)
      • combine (1)
    • Flutter (18)
    • 알아두면 유용할 것 (7)
    • SwiftUI (0)
    • 프로그래머스 (0)
  • 방명록

Push (1)
[Flutter] push, pop 화면 전환하며 데이터 넘겨 받는 방법

플러터에서 화면을 push, pop하면서 데이터를 넘겨받는 방법 1. push 할 때(1) 새로운 화면(SecondScreen)에 필수 파라미터를 설정하여 값을 넘기는 방법SecondScreen에 inputString이라는 필수 파라미터를 설정하여 push할 때 해당 파라미터 값을 넘기도록 함onPressed: () { Navigator.push( context, CupertinoPageRoute( builder: (context) => SecondScreen(inputString: _textEditingController.text), ), );}, 전체코드import 'package:flutter/cupertino.dart';import 'package:flutter/mate..

Flutter 2024. 6. 12. 17:18
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크

Blog is powered by Tistory / Designed by Tistory

티스토리툴바