Flutter 플러터 앱 상태 확인하기 AppLifecycleState


Flutter 플러터 앱 상태 확인하기 AppLifecycleState

예시 코드 import 'package:flutter/material.dart'; class ExamplePage extends StatefulWidget { const ExamplePage({Key? key}) : super(key: key); @override State createState() => _ExamplePageState(); } class _ExamplePageState extends State with WidgetsBindingObserver { @override void didChangeAppLifecycleState(AppLifecycleState state) { switch (state) { case AppLifecycleState.resumed: print("앱이 표시되고 사용자..


원문링크 : Flutter 플러터 앱 상태 확인하기 AppLifecycleState