Flutter Detect Notification Tray Pulldown - flutter

I'm trying to implement a feature based on the background/foreground status of a Flutter app.
Does anyone know of a way to detect if the notification/system try on a device is pulled down over the app?
Thanks.

Welcome to SOF
You can detect this using special permission in Android (https://developer.android.com/reference/android/Manifest.permission#EXPAND_STATUS_BAR).
But you need native code to run in Flutter.
There is a similar (almost) package out there, you may fork it:
https://pub.dev/packages/notification_shade

Related

Is it possible to create a custom share sheet in Flutter?

I want to build this custom share sheet shown in the screenshot depending on the apps that are on the mobile, could anyone tell me if it's possible? screenshot
i am currently using flutter's share_plus package, but the share method summons the platform's share sheet, is it possible to customize my own share sheet and use it for both platforms android and ios?
Using the Flutter Availability package you can customize this by styling BottomSheet from scratch. Still, this package is only for Android devices. Unfortunately, iOS does not provide any API to get the installed APPs information.
I guess You'll have to work with a modalBottomSheet and https://pub.dev/packages/url_launcher
You can check if an application is installed, but this would work only for android Is there any way to identify that a particular application is installed in my android/ios device through flutter and dart?

Is there a way in flutter to switch the screen off when i click a button?

I am trying to create an app launcher with flutter but failing to implement the functionality of turning screen of on double tap.
is there any package that can help me
You could use the flutter_app_lock package but what I'd recommend using platform specific methods to send your request from your flutter app to the system platform.
And if you want there's a package for sending requests too. The package is called Pigeon and you can find more about sending requests to android or swift in this link: https://docs.flutter.dev/development/platform-integration/platform-channels?tab=type-mappings-swift-tab

Show notification even app is close flutter

I want my application to always show in a notification .It should be undismissable and it should be shown on notification bar always even app is off.
Try flutter_local_notifications plugin.
If you didn't find a plugin that satisfies your needs, just implement it on the native side.
Flutter is a UI framework. Use it as such.
Plugins wrap native capabilities and encapsulate them, but feel free to add native code that suits your needs.

Detect window closing action flutter desktop

I am working on flutter desktop application and want to show alert dialog before closing window. Could not get any information about detecting window closing action.
Can anyone tell me how to do this. Thankx.
You can do it using the existing flutter_window_close package. Check out the example here.
This plugin lets your Flutter app a chance to confirm if the user wants to close your app. It works on desktop platforms including Windows, macOS and Linux.
Try to explore as well bitsdojo_window.

Is it possible to launch a third party app from my flutter app?

I am trying to launch a third-party app from my flutter but I’m not getting anywhere. In this case, I am trying to open the app “Amazon Alexa” by clicking on a raised button in Flutter. Can anyone help me out?
I tried to use url_launcher but it didn’t work out with third-party apps.
yes, some packages are available but the issue is, these are still in the early stages.
so for that, you need to move to the native side.