feat: hide/show console header value button, changed icons from cupertino to material

This commit is contained in:
Aliaksei Tratseuski 2024-06-19 15:12:34 +04:00
parent bd090b646d
commit 05800f5900

View file

@ -1,5 +1,4 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:selfprivacy/logic/models/console_log.dart';
import 'package:selfprivacy/utils/platform_adapter.dart';
@ -270,7 +269,9 @@ class _ObscuredKeyValueRowState extends State<_ObscuredKeyValueRow> {
),
IconButton(
icon: Icon(
_obscureValue ? CupertinoIcons.eye : CupertinoIcons.eye_slash,
_obscureValue
? Icons.visibility_outlined
: Icons.visibility_off_outlined,
),
onPressed: () {
_obscureValue ^= true; // toggle value