From 3c15604aae540223b4a74a1124e4190256b7a2dd Mon Sep 17 00:00:00 2001 From: Armand <4831c0@proton.me> Date: Tue, 15 Jul 2025 08:52:54 +0200 Subject: [PATCH] make BottomNavIcon immutable --- firka/lib/ui/phone/widgets/bottom_nav_icon.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/firka/lib/ui/phone/widgets/bottom_nav_icon.dart b/firka/lib/ui/phone/widgets/bottom_nav_icon.dart index f6d4f2d9..abc6ebae 100644 --- a/firka/lib/ui/phone/widgets/bottom_nav_icon.dart +++ b/firka/lib/ui/phone/widgets/bottom_nav_icon.dart @@ -6,15 +6,15 @@ import '../../model/style.dart'; import '../../widget/firka_icon.dart'; class BottomNavIcon extends StatelessWidget { - void Function() onTap; - bool active; - Uint8List icon; - String text; - Color iconColor; - Color textColor; + final void Function() onTap; + final bool active; + final Uint8List icon; + final String text; + final Color iconColor; + final Color textColor; - BottomNavIcon(this.onTap, this.active, this.icon, this.text, this.iconColor, - this.textColor, + const BottomNavIcon(this.onTap, this.active, this.icon, this.text, + this.iconColor, this.textColor, {super.key}); @override