qweather_icons 1.8.0 copy "qweather_icons: ^1.8.0" to clipboard
qweather_icons: ^1.8.0 copied to clipboard

An Icon package for QWeather, which helps you show its icon continently.

qweather_icons

『 qweather_icons - QWeather Icons! 』

中文 Readme

📚 Introduction #

An Icon package for QWeather, which helps you show its icon continently.

📸 Screenshots #

screenshot_1

screenshot_2

Or try out live example app.

📦 How to use #

  1. Add latest version to pubspec.yaml

    dart pub add
    
  2. Use it any where

    Icon(QweatherIcons.tag_qweather),
    
  3. 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;
      }
    

⏳ Rate of progress #

Keep watching QWeather Icon.

🧑‍💻 Contributor #

contributors

🔦 Declaration #

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.

For QWeather_Icons.ttf

7
likes
150
points
177
downloads

Publisher

verified publishernote-of-me.top

Weekly Downloads

An Icon package for QWeather, which helps you show its icon continently.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on qweather_icons