forked from yaso_meth/mih-project
Add Custome Icons pack
This commit is contained in:
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/widgets.dart'; // You need this import for IconData
|
||||
|
||||
class MihIcons {
|
||||
MihIcons._(); // This makes the class non-instantiable (good practice for utility classes)
|
||||
|
||||
// This MUST match the 'family' name you specify in pubspec.yaml
|
||||
static const _mihFontFam = 'MihIcons';
|
||||
// Set to your package name ONLY if this font is part of a separate package you created
|
||||
static const String? _mihFontPkg = null;
|
||||
|
||||
// IconData constant for 'mih_circle_frame' using its code 59392
|
||||
// Note: We use lowerCamelCase for Dart variable names
|
||||
static const IconData mihCircleFrame =
|
||||
IconData(59393, fontFamily: _mihFontFam, fontPackage: _mihFontPkg);
|
||||
|
||||
// IconData constant for 'mih_logo' using its code 59393
|
||||
static const IconData mihLogo =
|
||||
IconData(59392, fontFamily: _mihFontFam, fontPackage: _mihFontPkg);
|
||||
|
||||
// IconData constant for 'mzansi_ai_logo' using its code 59394
|
||||
static const IconData mzansiAiLogo =
|
||||
IconData(59394, fontFamily: _mihFontFam, fontPackage: _mihFontPkg);
|
||||
}
|
||||
@@ -102,6 +102,7 @@ flutter:
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
assets:
|
||||
- lib/mih_components/mih_package_components/assets/images/
|
||||
- lib/mih_components/mih_package_components/assets/fonts/
|
||||
- lib/mih_components/mih_package_components/assets/images/loyalty_cards/
|
||||
- lib/mih_components/mih_package_components/assets/images/app_icon/
|
||||
- lib/mih_components/mih_package_components/assets/images/splash_screen/
|
||||
@@ -118,10 +119,10 @@ flutter:
|
||||
# "family" key with the font family name, and a "fonts" key with a
|
||||
# list giving the asset and other descriptors for the font. For
|
||||
# example:
|
||||
# fonts:
|
||||
# - family: Schyler
|
||||
# fonts:
|
||||
# - asset: fonts/Schyler-Regular.ttf
|
||||
fonts:
|
||||
- family: MihIcons
|
||||
fonts:
|
||||
- asset: lib/mih_components/mih_package_components/assets/fonts/MihIcons.ttf
|
||||
# - asset: fonts/Schyler-Italic.ttf
|
||||
# style: italic
|
||||
# - family: Trajan Pro
|
||||
|
||||
Reference in New Issue
Block a user