flutter_app_security_detected 1.0.0 flutter_app_security_detected: ^1.0.0 copied to clipboard
flutter_app_security_detected lib allow your app to detected security device both(dev and jailbreak).
flutter_app_security_detected #
Highly feature flutter_app_security_detected widget for Flutter.
Disabled Detected |
Enabled Detected |
Features #
- Eanble or disabled security detected.
- Change style dialog.
Usage #
Make sure to check out examples
Installation #
Add the following line to pubspec.yaml
:
dependencies:
flutter_app_security_detected: ^1.0.0
Basic setup #
The complete example is available here.
Configuration #
void main() async {
WidgetsFlutterBinding.ensureInitialized();
FlutterAppSecurityDetectedConfig().setConfig(
allowSecurityDetected: true,
securityDetectedTitle: "Security Detected",
securityDetectedMessage:
"This application will not run while a jailbreak or in development mode.",
securityDetectedTitleButton: "Close",
callback: (jailbroken, developerMode) {
print(jailbroken);
print(developerMode);
},
textTitleStyle: const TextStyle(
color: Colors.red,
fontSize: 30,
),
textBodyStyle: TextStyle(
fontSize: 20,
color: Colors.red.withAlpha(100),
),
textButtonStyle: const TextStyle(
color: Colors.red,
fontWeight: FontWeight.bold,
fontSize: 20,
),
);
runApp(const MyApp());
}
Extent your flutter stateFulWidget from our class: #
- FlutterAppSecurityDetectedStatefulWidget and FlutterAppSecurityDetectedStatefulWidgetState
class FlutterAppSecurityDetectedExample
extends FlutterAppSecurityDetectedStatefulWidget {
@override
FlutterAppSecurityDetectedExampleState createState() =>
FlutterAppSecurityDetectedExampleState();
}
class FlutterAppSecurityDetectedExampleState
extends FlutterAppSecurityDetectedStatefulWidgetState<
FlutterAppSecurityDetectedExample> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text("Security Detected")),
body: const Center(
child: Text("Sample Security Detected"),
),
);
}
}
Events #
use callback
will return status of your device detected.
callback: (jailbroken, developerMode) {
print(jailbroken);
print(developerMode);
}
Hello everyone π
If you want to support me, feel free to do so.
Thanks
============================================
αα½ααααΈ α’αααααΆααα’ααααααΆπ
ααΎβα’αααβα ααβααΆααααβαααα»α ααΌαβααααΎβαααβααααΈ ,
ααΌαα’ααα»α