From ec12b68d3e43feaab500debe929c993f0b0c7429 Mon Sep 17 00:00:00 2001 From: ZhuJHua <1624109111@qq.com> Date: Thu, 14 Nov 2024 22:04:16 +0800 Subject: [PATCH] fix(password): remove password error --- .../remove_password/remove_password_view.dart | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/components/remove_password/remove_password_view.dart b/lib/components/remove_password/remove_password_view.dart index e2c33b6..35d47a2 100644 --- a/lib/components/remove_password/remove_password_view.dart +++ b/lib/components/remove_password/remove_password_view.dart @@ -66,16 +66,12 @@ class RemovePasswordComponent extends StatelessWidget { List buildPasswordIndicator() { return List.generate(4, (index) { - return Obx(() { - return Icon( - Icons.circle, - size: 16, - color: Color.lerp( - state.password.length > index ? colorScheme.onSurface : colorScheme.surfaceContainerHighest, - Colors.red, - logic.animation.value), - ); - }); + return Icon( + Icons.circle, + size: 16, + color: Color.lerp(state.password.length > index ? colorScheme.onSurface : colorScheme.surfaceContainerHighest, + Colors.red, logic.animation.value), + ); }); }