1

Is it possible to manually control the flutter AppLifeCycleState?

  @override
  void didChangeAppLifecycleState(AppLifecycleState state) {
    switch (state) {
      case AppLifecycleState.resumed:
        debugPrint("Colorun - resumed");
        break;
      case AppLifecycleState.inactive:
        debugPrint("Colorun - inactive");
        break;
      case AppLifecycleState.paused:
        debugPrint("Colorun - paused");
        break;
      case AppLifecycleState.detached:
        debugPrint("Colorun - detached");
        break;
    }
  }

Is it possible to change the flutter app from running state to paused state?

ruben
  • 1,745
  • 5
  • 25
  • 47
안태준
  • 21
  • 3

0 Answers0