Detect when user is not interacting the app in Flutter
问题 I want to show some Screensaver type of screen when the user is not interacting the app for 5 minutes. So is anyone know how to achieve this kind of functionality in flutter. import 'dart:async'; import 'package:flutter/material.dart'; const timeout = const Duration(seconds: 10); const ms = const Duration(milliseconds: 1); Timer timer; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { var home = MyHomePage(title: 'Flutter Demo