buildSecurityKeyStatusInteractiveText method
Implementation
Widget buildSecurityKeyStatusInteractiveText(
String securityKeyStatus, BuildContext context) {
return MarkdownTooltip(
message: '''
**Security Key Manager:** Tap here to manage your security key settings.
- View your current security key status
- Save a new security key
- Remove an existing security key
Your security key is essential for encrypting and protecting your health data.
''',
child: createInteractiveText(
context: context,
text: securityKeyStatus,
onTap: () => showDialog(
context: context,
barrierColor: Colors.black12, // Makes the background more transparent
builder: (BuildContext context) => SecurityKeyManager(
onKeyStatusChanged: onKeyStatusChanged,
),
),
style: TextStyle(
fontSize: 14,
color: isKeySaved ? Colors.green : Colors.red,
),
),
);
}