circle_access_lock 1.0.1
circle_access_lock: ^1.0.1 copied to clipboard
Lock your app with a scan to access by a second device (mainly for tablets and desktops) powered by Circle.
Circle Access Lock #
A Flutter package to handle access lock using a Circle Technology. This package provides a simple way to present a Lock Screen to the user and control access.
Features #
- Easy integration with your Flutter app
- Configurable time constraints
- Enable/disable the access lock
Installation #
To use the Circle Access Lock package, add it as a dependency in your pubspec.yaml file:
dependencies:
circle_access_lock: ^1.0.0
Then, run flutter pub get to download the package.
Usage #
- Import the package in your Dart file:
import 'package:circle_access_lock/circle_access_lock.dart';
- Initialize the
CircleAccessLockin your widget:
import 'package:flutter/material.dart';
import 'package:circle_access_lock/circle_access_lock.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final navigatorKey = GlobalKey<NavigatorState>();
final circleAccessLock = CircleAccessLock(navigatorKey: navigatorKey);
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: navigatorKey,
home: Scaffold(
body: Center(
child: Text('Testing'),
),
),
),
);
}
}
- Use the
enableanddisablemethods to control the access lock:
circleAccessLock.enable();
circleAccessLock.disable();
License #
This project is licensed under the MIT License.