qweather_icons

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

qweather icons

γ€Ž qweather_icons - QWeather Icons! 』
δΈ­ζ–‡ Readme

Latest update: 2023-09-21 17:00:44
πŸ“š Introduction
πŸ“Έ Screenshots
πŸ“¦ How to use
⏳ Rate of progress
πŸ“Œ Cautions
πŸ§‘β€πŸ’» Contributor
πŸ”¦ Declaration

πŸ“š Introduction #
An Icon package for QWeather, which helps you show its icon continently.
πŸ“Έ Screenshots #


Or try out live example app.
πŸ“¦ How to use #


Add latest version to pubspec.yaml
dependencies:
qweather_icons: ^1.6.0
copied to clipboard


Use it any where
Icon(QweatherIcons.tag_qweather),
copied to clipboard


More method
/// get icon with [tag]
///
/// if it doesn't exist, return [QWeatherIcons.tag_unknown] as default value
factory QWeatherIcons.getIconWith(String? tag) {
if (tag == null) return QWeatherIcons.tag_unknown;
for (QWeatherIcons icons in QWeatherIcons.values) {
if (icons.tag == tag) return icons;
}
return QWeatherIcons.tag_unknown;
}

/// get filled icon with [qWeatherIcons]
///
/// if it doesn't exist, return [QWeatherIcons.tag_unknown] as default value
factory QWeatherIcons.getFilledIconWith(QWeatherIcons qWeatherIcons) {
if (qWeatherIcons.tag.endsWith('_fill')) return qWeatherIcons;
for (QWeatherIcons icons in QWeatherIcons.values) {
if ('${qWeatherIcons.tag}_fill' == icons.tag) return icons;
}
return QWeatherIcons.tag_unknown;
}

/// get unfilled icon with [qWeatherIcons]
///
/// if it doesn't exist, return [QWeatherIcons.tag_unknown] as default value
factory QWeatherIcons.getUnfilledIconWith(QWeatherIcons qWeatherIcons) {
if (!qWeatherIcons.tag.endsWith('_fill')) return qWeatherIcons;
for (QWeatherIcons icons in QWeatherIcons.values) {
if ('${icons.tag}_fill' == qWeatherIcons.tag) return icons;
}
return QWeatherIcons.tag_unknown;
}
copied to clipboard


⏳ Rate of progress #
Done...?
πŸ“Œ Cautions #

None

πŸ§‘β€πŸ’» Contributor #



πŸ”¦ Declaration #

This project is licensed under the terms of the BSD-3-Clause license. See LICENSE for more details
For QWeather_Icons.ttf

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.