Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cierra-runis/qweather_icons
An Icon Package for QWeather
https://github.com/cierra-runis/qweather_icons
flutter icon icons package qweather
Last synced: about 1 month ago
JSON representation
An Icon Package for QWeather
- Host: GitHub
- URL: https://github.com/cierra-runis/qweather_icons
- Owner: Cierra-Runis
- License: mit
- Created: 2023-05-10T13:23:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-29T08:16:11.000Z (about 1 year ago)
- Last Synced: 2023-11-29T09:32:10.224Z (about 1 year ago)
- Topics: flutter, icon, icons, package, qweather
- Language: Dart
- Homepage: https://pub.dev/packages/qweather_icons
- Size: 5.97 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
`Latest update: 2023-09-21 17:00:44`
[π Introduction](#-Introduction)
[πΈ Screenshots](#-Screenshots)
[π¦ How to use](#-How-to-use)
[β³ Rate of progress](#-Rate-of-progress)
[π Cautions](#-Cautions)
[π§βπ» Contributor](#-Contributor)
[π¦ Declaration](#-Declaration)
---
# π Introduction
An Icon package for [QWeather](https://github.com/qwd/Icons), which helps you show its icon continently.
# πΈ Screenshots
![screenshot_1](https://raw.githubusercontent.com/Cierra-Runis/qweather_icons/master/.github/sreenshot_1.jpg)
![screenshot_2](https://raw.githubusercontent.com/Cierra-Runis/qweather_icons/master/.github/sreenshot_2.jpg)
Or try out [live example app](https://note-of-me.top/qweather_icons/).
# π¦ How to use
1. Add latest version to `pubspec.yaml`
```yaml
dependencies:
qweather_icons: ^1.6.0
```2. Use it any where
```dart
Icon(QweatherIcons.tag_qweather),
```3. More method
```dart
/// 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;
}
```# β³ Rate of progress
Done...?
# π Cautions
- None
# π§βπ» Contributor
# π¦ Declaration
[![License](https://img.shields.io/github/license/Cierra-Runis/qweather_icons)](https://github.com/Cierra-Runis/qweather_icons/blob/master/LICENSE)
This project is licensed under the terms of the `BSD-3-Clause` license. See [LICENSE](https://github.com/Cierra-Runis/qweather_icons/blob/master/LICENSE) for more details
[For QWeather_Icons.ttf](https://github.com/qwd/Icons/blob/main/LICENSE)