mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 18:33:11 +00:00
feat: hide/show console header value button, changed icons from cupertino to material
This commit is contained in:
parent
bd090b646d
commit
05800f5900
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue