From ffe7535cd2f6d19fd00b178dbfab820a805d360c Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Tue, 21 Jan 2025 20:02:35 +0530 Subject: [PATCH] Lint fix --- auth/lib/ui/home_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/lib/ui/home_page.dart b/auth/lib/ui/home_page.dart index 16136428ee..0f76dac047 100644 --- a/auth/lib/ui/home_page.dart +++ b/auth/lib/ui/home_page.dart @@ -90,8 +90,8 @@ class _HomePageState extends State { @override void initState() { super.initState(); - _textController.addListener(_applyFilteringAndRefresh); _codeSortKey = PreferenceService.instance.codeSortKey(); + _textController.addListener(_applyFilteringAndRefresh); _loadCodes(); _streamSubscription = Bus.instance.on().listen((event) { _loadCodes(); @@ -580,7 +580,7 @@ class _HomePageState extends State { return ClipRect( child: CodeWidget( - key: ValueKey('${code.hashCode}_$newIndex_${_codeSortKey ?? ""}'), + key: ValueKey('${code.hashCode}_${newIndex}_$_codeSortKey'), code, isCompactMode: isCompactMode, sortKey: _codeSortKey,