feat: update icons to Lucide icons across various models and screens

This commit is contained in:
Ashwin 2026-08-09 12:53:56 +05:30
parent f8bb608336
commit c96a5d3bbf
13 changed files with 102 additions and 89 deletions

View file

@ -1,25 +1,26 @@
import 'package:flutter/material.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../core/theme/app_colors.dart';
import 'task.dart';
/// Activity type enumeration
enum ActivityType {
call('Call', Icons.phone_outlined, AppColors.primary500),
email('Email', Icons.email_outlined, AppColors.purple500),
note('Note', Icons.sticky_note_2_outlined, AppColors.gray500),
meeting('Meeting', Icons.event_outlined, AppColors.warning500),
stageChange('Stage Change', Icons.trending_up_outlined, AppColors.primary600),
dealWon('Deal Won', Icons.emoji_events_outlined, AppColors.success500),
dealLost('Deal Lost', Icons.cancel_outlined, AppColors.danger500),
call('Call', LucideIcons.phone, AppColors.primary500),
email('Email', LucideIcons.mail, AppColors.purple500),
note('Note', LucideIcons.stickyNote, AppColors.gray500),
meeting('Meeting', LucideIcons.calendar, AppColors.warning500),
stageChange('Stage Change', LucideIcons.trendingUp, AppColors.primary600),
dealWon('Deal Won', LucideIcons.trophy, AppColors.success500),
dealLost('Deal Lost', LucideIcons.circleX, AppColors.danger500),
taskCompleted(
'Task Completed',
Icons.check_circle_outline,
LucideIcons.circleCheck,
AppColors.success500,
),
leadCreated('Lead Created', Icons.person_add_outlined, AppColors.primary500),
leadCreated('Lead Created', LucideIcons.userPlus, AppColors.primary500),
dealCreated(
'Deal Created',
Icons.add_business_outlined,
LucideIcons.circlePlus,
AppColors.primary500,
);

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../core/theme/app_colors.dart';
import 'attachment.dart';
import 'comment.dart';
@ -126,17 +127,17 @@ enum DealStage {
IconData get icon {
switch (this) {
case DealStage.prospecting:
return Icons.search;
return LucideIcons.search;
case DealStage.qualified:
return Icons.check_circle_outline;
return LucideIcons.circleCheck;
case DealStage.proposal:
return Icons.description_outlined;
return LucideIcons.fileText;
case DealStage.negotiation:
return Icons.chat_outlined;
return LucideIcons.messageCircle;
case DealStage.closedWon:
return Icons.emoji_events_outlined;
return LucideIcons.trophy;
case DealStage.closedLost:
return Icons.cancel_outlined;
return LucideIcons.circleX;
}
}

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../core/theme/app_colors.dart';
import 'attachment.dart';
import 'comment.dart';
@ -31,18 +32,18 @@ enum LeadStatus {
/// Lead source enumeration matching backend LEAD_SOURCE
enum LeadSource {
none('', 'None', Icons.help_outline),
call('call', 'Call', Icons.phone),
email('email', 'Email', Icons.email),
existingCustomer('existing customer', 'Existing Customer', Icons.people),
partner('partner', 'Partner', Icons.handshake),
publicRelations('public relations', 'Public Relations', Icons.newspaper),
none('', 'None', LucideIcons.circleHelp),
call('call', 'Call', LucideIcons.phone),
email('email', 'Email', LucideIcons.mail),
existingCustomer('existing customer', 'Existing Customer', LucideIcons.users),
partner('partner', 'Partner', LucideIcons.handshake),
publicRelations('public relations', 'Public Relations', LucideIcons.newspaper),
campaign(
'compaign',
'Campaign',
Icons.campaign,
LucideIcons.megaphone,
), // Note: backend has typo "compaign"
other('other', 'Other', Icons.more_horiz);
other('other', 'Other', LucideIcons.ellipsis);
final String value;
final String label;

View file

@ -1,14 +1,15 @@
import 'package:flutter/material.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../../core/theme/app_colors.dart';
import 'lead.dart';
/// Related entity type for polymorphic relations
enum RelatedEntityType {
lead('lead', 'Lead', Icons.person_outline),
account('account', 'Account', Icons.business),
opportunity('opportunity', 'Opportunity', Icons.trending_up),
ticket_('case', 'Ticket', Icons.support_agent),
contact('contact', 'Contact', Icons.contacts);
lead('lead', 'Lead', LucideIcons.user),
account('account', 'Account', LucideIcons.building2),
opportunity('opportunity', 'Opportunity', LucideIcons.trendingUp),
ticket_('case', 'Ticket', LucideIcons.headset),
contact('contact', 'Contact', LucideIcons.contact);
final String value;
final String label;

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../core/theme/app_colors.dart';
import 'comment.dart';
@ -54,9 +55,9 @@ enum TicketPriority {
/// Ticket type enumeration matching backend CASE_TYPE
enum TicketType {
question('Question', 'Question', Icons.help_outline),
incident('Incident', 'Incident', Icons.error_outline),
problem('Problem', 'Problem', Icons.report_problem_outlined);
question('Question', 'Question', LucideIcons.circleHelp),
incident('Incident', 'Incident', LucideIcons.circleAlert),
problem('Problem', 'Problem', LucideIcons.triangleAlert);
final String value;
final String label;

View file

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../providers/auth_provider.dart';
@ -884,7 +885,7 @@ final appRouterProvider = Provider<GoRouter>((ref) {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(Icons.error_outline, size: 64, color: Colors.grey),
const Icon(LucideIcons.circleAlert, size: 64, color: Colors.grey),
const SizedBox(height: 16),
Text(
'Page not found',

View file

@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../data/models/auth_response.dart';
import '../../providers/auth_provider.dart';
@ -116,7 +117,7 @@ class _OrgSelectionScreenState extends ConsumerState<OrgSelectionScreen> {
height: 24,
child: CircularProgressIndicator(strokeWidth: 2),
)
: const Icon(Icons.arrow_forward_ios, size: 16),
: const Icon(LucideIcons.chevronRight, size: 16),
onTap: _isSelecting ? null : () => _selectOrganization(org),
),
),
@ -130,7 +131,7 @@ class _OrgSelectionScreenState extends ConsumerState<OrgSelectionScreen> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.business_outlined, size: 64, color: Colors.grey[400]),
Icon(LucideIcons.building2, size: 64, color: Colors.grey[400]),
const SizedBox(height: 16),
Text(
'No Organizations',
@ -153,7 +154,7 @@ class _OrgSelectionScreenState extends ConsumerState<OrgSelectionScreen> {
// was Sign Out.
FilledButton.icon(
onPressed: () => context.push(AppRoutes.orgCreate),
icon: const Icon(Icons.add),
icon: const Icon(LucideIcons.plus),
label: const Text('Create an organization'),
),
],
@ -178,7 +179,7 @@ class _OrgSelectionScreenState extends ConsumerState<OrgSelectionScreen> {
automaticallyImplyLeading: false,
actions: [
IconButton(
icon: const Icon(Icons.logout),
icon: const Icon(LucideIcons.logOut),
onPressed: _signOut,
tooltip: 'Sign Out',
),
@ -268,7 +269,7 @@ class _OrgSelectionScreenState extends ConsumerState<OrgSelectionScreen> {
onPressed: _isSelecting
? null
: () => context.push(AppRoutes.orgCreate),
icon: const Icon(Icons.add, size: 18),
icon: const Icon(LucideIcons.plus, size: 18),
label: const Text('Create an organization'),
),
),

View file

@ -267,7 +267,7 @@ class _DocumentFormScreenState extends ConsumerState<DocumentFormScreen> {
elevation: 0,
scrolledUnderElevation: 1,
leading: IconButton(
icon: const Icon(Icons.arrow_back),
icon: const Icon(LucideIcons.arrowLeft),
onPressed: _saving
? null
: () => leaveForm(context, hasUnsavedChanges: _dirty),

View file

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../core/theme/theme.dart';
import '../../data/models/lookup_models.dart';
@ -249,7 +250,7 @@ class _GoalFormScreenState extends ConsumerState<GoalFormScreen> {
elevation: 0,
scrolledUnderElevation: 1,
leading: IconButton(
icon: const Icon(Icons.arrow_back),
icon: const Icon(LucideIcons.arrowLeft),
onPressed: _saving
? null
: () => leaveForm(context, hasUnsavedChanges: _dirty),

View file

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../core/theme/theme.dart';
import '../../data/models/models.dart';
@ -100,26 +101,26 @@ class PriorityBadge extends StatelessWidget {
static IconData _priorityIcon(Priority p) {
switch (p) {
case Priority.urgent:
return Icons.priority_high_rounded;
return LucideIcons.chevronsUp;
case Priority.high:
return Icons.arrow_upward_rounded;
return LucideIcons.arrowUp;
case Priority.medium:
return Icons.remove_rounded;
return LucideIcons.minus;
case Priority.low:
return Icons.arrow_downward_rounded;
return LucideIcons.arrowDown;
}
}
static IconData _ticketPriorityIcon(TicketPriority p) {
switch (p) {
case TicketPriority.urgent:
return Icons.priority_high_rounded;
return LucideIcons.chevronsUp;
case TicketPriority.high:
return Icons.arrow_upward_rounded;
return LucideIcons.arrowUp;
case TicketPriority.normal:
return Icons.remove_rounded;
return LucideIcons.minus;
case TicketPriority.low:
return Icons.arrow_downward_rounded;
return LucideIcons.arrowDown;
}
}
@ -216,7 +217,7 @@ class LabelPill extends StatelessWidget {
color: pillColor.withValues(alpha: 0.2),
shape: BoxShape.circle,
),
child: Icon(Icons.close_rounded, size: 10, color: pillColor),
child: Icon(LucideIcons.x, size: 10, color: pillColor),
),
),
],

View file

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:lucide_icons_flutter/lucide_icons.dart';
import '../../core/theme/theme.dart';
/// Floating Label Input Field
@ -100,7 +101,7 @@ class _FloatingLabelInputState extends State<FloatingLabelInput> {
suffixIcon: widget.obscureText
? IconButton(
icon: Icon(
_obscureText ? Icons.visibility_off : Icons.visibility,
_obscureText ? LucideIcons.eyeOff : LucideIcons.eye,
size: 20,
color: AppColors.gray400,
),
@ -184,14 +185,14 @@ class _SearchInputState extends State<SearchInput> {
hintText: widget.hint,
hintStyle: AppTypography.body.copyWith(color: AppColors.gray400),
prefixIcon: const Icon(
Icons.search,
LucideIcons.search,
size: 20,
color: AppColors.gray400,
),
suffixIcon: _hasText
? IconButton(
icon: const Icon(
Icons.close,
LucideIcons.x,
size: 18,
color: AppColors.gray400,
),
@ -245,7 +246,7 @@ class SelectField<T> extends StatelessWidget {
),
style: AppTypography.body,
dropdownColor: AppColors.surface,
icon: const Icon(Icons.keyboard_arrow_down, color: AppColors.gray400),
icon: const Icon(LucideIcons.chevronDown, color: AppColors.gray400),
);
}
}

View file

@ -13,10 +13,10 @@ packages:
dependency: transitive
description:
name: _flutterfire_internals
sha256: "460e9e684edb461d85498fc166ff8416f303f22216838d302d80676b348c6a4c"
sha256: "6727cf2ced9b104abca9daa278380be2eca2b98ce33d4b46f11708e387dc6b4d"
url: "https://pub.dev"
source: hosted
version: "1.3.75"
version: "1.3.76"
analyzer:
dependency: transitive
description:
@ -157,10 +157,10 @@ packages:
dependency: transitive
description:
name: dbus
sha256: "792974a4007974fbc5c1b5433eb2330a9db3e368c3f906253af4c007d0f49a91"
sha256: "0ce9b0a839e6dee59a37a623d2fc26a35bbbe6404213e419b0d6411023d62645"
url: "https://pub.dev"
source: hosted
version: "0.7.13"
version: "0.7.14"
equatable:
dependency: transitive
description:
@ -205,42 +205,42 @@ packages:
dependency: "direct main"
description:
name: firebase_core
sha256: "6f22d1c62e0c20976f02cd842c7b7cd3c0f561cc2052586411871045c08860c9"
sha256: "9478ca6700c02d315c6aba37e206e612317f98bb4f335bb1cbd6e0ce67dcf764"
url: "https://pub.dev"
source: hosted
version: "4.12.1"
version: "4.13.0"
firebase_core_platform_interface:
dependency: transitive
description:
name: firebase_core_platform_interface
sha256: f74d1d6fabccf7743b0144c2ed363d81049e258e22428ebb6fb0faec2fa7d938
sha256: e28f9afdcb5b0f0a8ea74ea3b322f5a7592c81cb45dd9d189913bdae08a2089a
url: "https://pub.dev"
source: hosted
version: "8.0.0"
version: "8.1.0"
firebase_core_web:
dependency: transitive
description:
name: firebase_core_web
sha256: ddab99d709b8c27dd47576eb05a1e719e07a2aa45c009a49ae92ac4d2a8ca555
sha256: f471a288b0101a45567548322ac4a5ad31e3ecbf87a576dcc0e424e6a11e04ea
url: "https://pub.dev"
source: hosted
version: "3.9.1"
version: "3.10.0"
firebase_crashlytics:
dependency: "direct main"
description:
name: firebase_crashlytics
sha256: "9855d3e2286c3e4439cf7d48c740bdf282ac165f29c7551dcdaf121925c59a28"
sha256: "96c1d85de9eddc07061d3f7e2fb75596e75a45c9cec9c2e3a7cc9f97e6f3a748"
url: "https://pub.dev"
source: hosted
version: "5.2.6"
version: "5.2.7"
firebase_crashlytics_platform_interface:
dependency: transitive
description:
name: firebase_crashlytics_platform_interface
sha256: aab14de92555ccf8c8616fc1b649272aef04dadb07f986e166e1d36d158f7bd1
sha256: "47d83b71fd39c580297c696a507a7c2652680ea2045e40c6c4e3c371b0ee7bc6"
url: "https://pub.dev"
source: hosted
version: "3.8.26"
version: "3.8.27"
fixnum:
dependency: transitive
description:
@ -290,10 +290,10 @@ packages:
dependency: "direct main"
description:
name: flutter_riverpod
sha256: a441fd079f11969f526ec04556ba9819fee7d981bdf50fab858066807b36cff9
sha256: "56e81e662e6e54e59b231da57e90ac0d06ac67d8e3f2273c129a37ae6282b40c"
url: "https://pub.dev"
source: hosted
version: "3.4.1"
version: "3.4.2"
flutter_secure_storage:
dependency: "direct main"
description:
@ -372,18 +372,18 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: "5922b2861e2235a3504896f0d6fa07d84141b480cf52eecd2f42cd25585a9e8a"
sha256: "55973bf1b27790489f8710ea615fe939f911ddcc5986fe97305e4fc19fa29ee9"
url: "https://pub.dev"
source: hosted
version: "17.3.0"
version: "17.4.0"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
sha256: d3f251381df389f7418d4dff416bd27c0a23138df22969aafd28c4a4b1bb3cd6
sha256: e3cb3ee6b47fd2472c23de6da5744796a4da195137759ddb3fbcc9467b7b3c7d
url: "https://pub.dev"
source: hosted
version: "8.2.0"
version: "8.2.1"
google_identity_services_web:
dependency: transitive
description:
@ -404,10 +404,10 @@ packages:
dependency: transitive
description:
name: google_sign_in_android
sha256: a01d4fd5a0e4eb0c1961434a0289a436abf9225b0933963c8e4e5ed88c26e40b
sha256: "57782125965ca87b03d42a147d40b046f1fd6a09141a58913e1b86671a5ef22e"
url: "https://pub.dev"
source: hosted
version: "7.2.15"
version: "7.2.16"
google_sign_in_ios:
dependency: transitive
description:
@ -468,10 +468,10 @@ packages:
dependency: transitive
description:
name: image
sha256: "6300175e00616bbc832e2fc91bfa4d776af5402c81c7151bee6905bb08473c52"
sha256: f9881ff4998044947ec38d098bc7c8316ae1186fa786eddffdb867b9bc94dfce
url: "https://pub.dev"
source: hosted
version: "4.9.1"
version: "4.8.0"
intl:
dependency: "direct main"
description:
@ -492,18 +492,18 @@ packages:
dependency: transitive
description:
name: jni
sha256: ca1efa31ef27a0b8ecbb4f8dcf3785e5ad1b8a54c64af9b72d287ae81f93a4f4
sha256: f038e58b4dc2c9037f50e233175086337e0b305e356d28211bf55f21c504cbd3
url: "https://pub.dev"
source: hosted
version: "1.0.1"
version: "1.0.3"
jni_flutter:
dependency: transitive
description:
name: jni_flutter
sha256: "8b59e590786050b1cd866677dddaf76b1ade5e7bc751abe04b86e84d379d3ba6"
sha256: "7b717011ea40d04fd47c2731d3d1d36eb99eba3435c2753d62489e8c3c9991d5"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
version: "1.0.2"
jni_util:
dependency: transitive
description:
@ -564,10 +564,10 @@ packages:
dependency: transitive
description:
name: listen
sha256: cb0ad74d7453d8f83a7c1fae401828681ef5df21d41a3a26a04af590c985d085
sha256: "47501a08016a43fcad79252439d723f50f14f88fa7bfd8a177e0a417e5c9e1f2"
url: "https://pub.dev"
source: hosted
version: "1.0.0-beta.4"
version: "1.0.1"
logging:
dependency: transitive
description:
@ -756,10 +756,10 @@ packages:
dependency: transitive
description:
name: riverpod
sha256: ccd1d45f07d20f894a975eeaa64d14a0dbbcfd0825bb59c3cd89837c2c21b436
sha256: "84351b3472a447f7b89f961f95c73287009d58c59d8cc1267425d995f78e50f1"
url: "https://pub.dev"
source: hosted
version: "3.4.1"
version: "3.4.2"
shared_preferences:
dependency: "direct main"
description:
@ -1113,10 +1113,10 @@ packages:
dependency: transitive
description:
name: xml
sha256: "67f0aff7be013d107995e9b75bf4e7f2c3ef2dfdb2c8e68024bba0a7fd5756a4"
sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025"
url: "https://pub.dev"
source: hosted
version: "7.0.1"
version: "6.6.1"
yaml:
dependency: transitive
description:

View file

@ -4,7 +4,7 @@ description: "CRM for everyone."
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.2.0+11
version: 1.2.1+12
environment:
sdk: ^3.8.1
@ -24,7 +24,10 @@ dependencies:
# Firebase / Crashlytics (Android only, no iOS GoogleService-Info.plist yet)
firebase_core: ^4.12.1
firebase_crashlytics: ^5.2.6
# Icons
# Not referenced by name anywhere in lib/, but SwitchListTile.adaptive in
# deals_list_screen.dart pulls in Flutter's Cupertino library, whose retained
# CupertinoIcons constants need this font present. Dropping it builds fine and
# then renders a missing-glyph box. Keep it.
cupertino_icons: ^1.0.9
# Navigation
go_router: ^17.2.3