I've downloaded the icons that I need in my flutter app and after specifying the path to the file.ttf inside pubspec.yaml, Icons does not show up in my app
here is the code
import 'package:flutter/widgets.dart';
class CustomizedIcons{
static const IconData stock_type1 = const IconData(0xe900,fontFamily:
"iconication");
static const IconData stock_type2 = const IconData(0xe901,fontFamily:
"iconication");
static const IconData business_deal = const IconData(0xe902,fontFamily:
"iconication");
static const IconData sales_growth = const IconData(0xe903,fontFamily:
"iconication");
static const IconData sales_rep = const IconData(0xe904,fontFamily:
"iconication");
static const IconData alert = const IconData(0xe905,fontFamily:
"iconication");
static const IconData business_clients = const
IconData(0xe906,fontFamily: "iconication");
}
and here is the pubspec.yaml file code
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
fonts:
- family: iconication
fonts:
- asset: icons\ic_iconication.ttf