Skip to content

Commit dc29472

Browse files
committed
refactor(icons): Replace custom icon font with tabler_icons package
Replaced the custom `IconsX` icon font with the `tabler_icons` package to standardize and simplify icon management. - Added the `tabler_icons: ^2.5.0+1` dependency. - Removed the `icon_font_generator` dev dependency and associated font assets (`icons.ttf`, `camping.svg`, `camping_outlined.svg`). - Deleted the generated `lib/generated/icons.dart` file. - Updated the UI in `lib/ui/game/campfire/camp.dart` to use icons from `TablerIcons` instead of the custom `IconsX`.
1 parent a61f77d commit dc29472

File tree

7 files changed

+12
-49
lines changed

7 files changed

+12
-49
lines changed

assets/icons.ttf

-1.58 KB
Binary file not shown.

icons/camping.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

icons/camping_outlined.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/generated/icons.dart

Lines changed: 0 additions & 19 deletions
This file was deleted.

lib/ui/game/campfire/camp.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:easy_localization/easy_localization.dart';
2-
import 'package:escape_wild/generated/icons.dart';
32
import 'package:flutter/material.dart';
3+
import 'package:tabler_icons/tabler_icons.dart';
44

55
import 'campfire.dart';
66
import '../shelter/shelter.dart';
@@ -48,11 +48,11 @@ class _CampPageState extends State<CampPage> with TickerProviderStateMixin {
4848
controller: _tabController,
4949
tabs: [
5050
Tab(
51-
icon: const Icon(IconsX.camping_outlined),
51+
icon: const Icon(TablerIcons.home),
5252
text: !showTabLabel ? null : _I.shelterTitle,
5353
),
5454
Tab(
55-
icon: const Icon(Icons.local_fire_department_outlined),
55+
icon: const Icon(TablerIcons.campfire),
5656
text: !showTabLabel ? null : _I.campfireTitle,
5757
),
5858
],

pubspec.lock

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,6 @@ packages:
405405
url: "https://pub.dev"
406406
source: hosted
407407
version: "4.1.2"
408-
icon_font_generator:
409-
dependency: "direct dev"
410-
description:
411-
path: "."
412-
ref: file_path_fix
413-
resolved-ref: "134cfbd4d6a16f29ac31b11fa99d1db0c64fbd52"
414-
url: "https://github.com/Gaurav192/icon_font_generator.git"
415-
source: git
416-
version: "3.1.0"
417408
intl:
418409
dependency: transitive
419410
description:
@@ -721,14 +712,6 @@ packages:
721712
url: "https://pub.dev"
722713
source: hosted
723714
version: "3.2.2"
724-
recase:
725-
dependency: transitive
726-
description:
727-
name: recase
728-
sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213
729-
url: "https://pub.dev"
730-
source: hosted
731-
version: "4.1.0"
732715
rettulf:
733716
dependency: "direct main"
734717
description:
@@ -934,6 +917,14 @@ packages:
934917
url: "https://pub.dev"
935918
source: hosted
936919
version: "31.2.10"
920+
tabler_icons:
921+
dependency: "direct main"
922+
description:
923+
name: tabler_icons
924+
sha256: "66f228edf680cddf36d1879d622f789ed314fedc6f6e9101d7d1d916ed537a29"
925+
url: "https://pub.dev"
926+
source: hosted
927+
version: "2.5.0+1"
937928
term_glyph:
938929
dependency: transitive
939930
description:

pubspec.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,13 @@ dependencies:
5656
uuid: ^4.5.1
5757
go_router: ^17.0.0
5858
flutter_riverpod: ^3.0.3
59+
tabler_icons: ^2.5.0+1
5960

6061
dev_dependencies:
6162
flutter_test:
6263
sdk: flutter
6364
build_runner: ^2.4.9
6465
json_serializable: ^6.9.3
65-
icon_font_generator:
66-
git:
67-
url: https://github.com/Gaurav192/icon_font_generator.git
68-
ref: file_path_fix
6966
flutter_lints: ^6.0.0
7067
copy_with_extension_gen: ^10.0.1
7168

@@ -78,7 +75,3 @@ flutter:
7875
- assets/vanilla/
7976
- assets/vanilla/l10n/
8077
- assets/img/
81-
fonts:
82-
- family: IconsX
83-
fonts:
84-
- asset: assets/icons.ttf

0 commit comments

Comments
 (0)