Flutter device administrator permission - flutter

I'm trying to build an application that will lock the screen on a timer in Flutter. I'm wondering how to grant android device administrator permissions to an application in flutter.
I've found this but it's not really helpful i feel for flutter.
https://developer.android.com/guide/topics/admin/device-admin#java
Does anyone have any suggestions?

There is currently no platform-agnostic Flutter implementation for locking a device screen programmatically. The Android specific page you were looking at is what you need to add admin permissions to the manifest file and implement your screen locking functionality.
You can add Android-specific Java or Kotlin code in a Flutter project as stated here: https://flutter.io/docs/development/platform-integration/platform-channels

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 it possible to create a flutter app to lock screen/ Turn on and off the screen in 2022?

flutter native dependencies
I need a way to access native dependencies
you can use the flutter_screen_lock, which provides the ability to lock the screen on ios and android. Biometric authentication can be used in addition to passcode.

It is possible to make a non-malicious keylogger in Flutter for IOS and Android?

it is possible to make a non-malicious keylogger in Flutter that works in IOS and Android?
The app will be for kids supervision and will be visible in the notification area.
Keyloger needs access privileges through the device's operating system,but Flutter apps cannot have such access privileges.So it is no possible to make keyloggers with Flutter.
you can use https://pub.dev/packages/flutter_secure_keyboard to prevent malicious keyloggers.

Adding GDPR Consent Dialog to a Flutter app

Is there anything available to add a GDPR consent Dialog using Flutter? The firebase_admob plugin has some properties for adding nonPersonalizedAds or not but thats about it.
I haven't noticed an SDK or anything for Flutter like they have for Android and iOS. Has anyone added a consent somehow on their own or did it separately for Android and then iOS
Any help is greatly appreciated.
i write simple library for flutter that show GDPR dialog for user.
This library works only with android platform now. IOS version coming soon.
Link:
https://pub.dev/packages/gdpr_dialog#-readme-tab-

Alternative to admob for flutter

I am a new flutter developer.
I have an app on the play store using flutter.
When setting up admob inside the app, I placed the code inside the main.dart file.
Inside the app a user will navigate through multiple screen (roughly 10+ screens) hourly.
I didn't realize the way the admob code was setup, that a new ad was loading and showing every-time a user switched pages.
With over 50 users, some doing this up to 10 times a day, Google decided that I had broke terms of agreement and disabled my admob account.
I filed a dispute but was denied the ability to reactivate my admob account.
I am trying to figure out what my options are for monetizing my app.
I assume 1 option is to write native code and use something other than admob. Is there any other option for monetizing an app with flutter outside of admob?
SEARCH THESE PLUGINS IN PUB DEV..THEY ARE ALTERNATIVES OF ADOMB FOR FLUTTFR
facebook audience network
ironsrc.com
adcolony
admost flutter plugin
sanjagh
nend plugin
flutter pollfish
You can use admob config as usual. You only need to add https://pub.dev/packages/admob_flutter as a dependency and handle configs for iOS and android separately.