Make bubble head icon when your app is in background in flutter.

<p>As you know in last article I told how to know when our app is in background. We will be using that thing in this article so I recommend you guys to once check that article as it will give you a overview how we knowing that our app is in back-ground and also some other useful information is there.</p> <blockquote> <p><a href="https://medium.com/p/ad19b0c1328d" rel="noopener">Previous Article</a></p> </blockquote> <p>So using previous article we will know when our app is in background and using that information we will Tigger our app to make a bubble icon. This the logical part and it&rsquo;s that simple but finding out the code harder part here.</p> <pre> class _MyHomePageState extends State&lt;MyHomePage&gt; with WidgetsBindingObserver { ... @override void initState() { super.initState(); WidgetsBinding.instance.addObserver(this); } @override void dispose() { super.dispose(); } @override void didChangeAppLifecycleState(AppLifecycleState state) { switch (state) { case AppLifecycleState.inactive: print(&quot;Inactive&quot;); break; case AppLifecycleState.paused: print(&quot;Paused&quot;); break; case AppLifecycleState.resumed: print(&quot;Resumed&quot;); break; case AppLifecycleState.suspending: print(&quot;Suspending&quot;); break; } ... }</pre> <p>So this code will help us to find if our app is in back-ground , we will be writing our bubble icon code in&nbsp;<strong>Paused&nbsp;</strong>section.</p> <p><a href="https://medium.com/@AryanBeast/make-bubble-head-icon-when-your-app-is-in-background-in-flutter-f32777952abd">Website</a></p>