SecureGate class

Inheritance

Constructors

SecureGate({Key? key, SecureGateController? controller, required Widget child, FutureOr<void> onFocus(BuildContext context, SecureGateController controller)?, Widget overlayBuilder(BuildContext context, SecureGateController controller)?, Color? color, double blur = 15, double opacity = 0.6})
SecureGate use a build-in singleton controller to control the state if you not specify the controller. You can get this by using SecureGateController.instance or inside the overlayBuilder parameter.
const

Properties

blur double
Blur of the blur screen.
final
child Widget
Child widget.
final
color Color?
Defalt color is Colors.grey.shade200.
final
controller SecureGateController?
SecureGateController.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onFocus → (FutureOr<void> Function(BuildContext context, SecureGateController controller)?)
This is a callback that will be called when the device is focused. You can use something like biometric authentication here. You can set the global onFocus in SecureGateController so it can be used across pages. If you set the overlayBuilder parameter in both SecureGateController and SecureGate, the SecureGate one will be used.
final
opacity double
Opacity of the blur screen.
final
overlayBuilder → (Widget Function(BuildContext context, SecureGateController controller)?)
Put an overlay widget. You can use the controller to lock or unlock the screen. You can set the global overlayBuilder in SecureGateController so it can be used across pages. If you set the overlayBuilder parameter in both SecureGateController and SecureGate, the SecureGate one will be used.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SecureGate>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited