[flutter] 프로그램 방식으로 flutter 앱 종료

Edward Hyun·2022년 1월 25일
0

app&web-dev

목록 보기
69/178

플러터에서 앱을 종료하는 것은 아래 방법을 씀.

static Future<void> pop({bool? animated}) async {
  await SystemChannels.platform.invokeMethod<void>('SystemNavigator.pop', animated);
}

출처 :: https://api.flutter.dev/flutter/services/SystemNavigator/pop.html

관련된 stackoverflow ::
https://stackoverflow.com/questions/45109557/flutter-how-to-programmatically-exit-the-app

profile
앱&웹개발(flutter, vuejs, typescript, react), 인공지능(nlp, asr, rl), 백엔드(nodejs, flask, golang, grpc, webrtc, aws, msa, nft, spring cloud, nest.js), 함수형 프로그래밍(scala, erlang)을 공부하며 정리합니다.

0개의 댓글