पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.1.1

dash_flags

देशों और भाषाओं के झंडे प्रदर्शित करने के लिए एक पैकेज, जिसमें विभिन्न विजेट और उपयोगी सूचियाँ हैं

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
2.4 हज़ार
लाइक
72
Pub अंक
160

पैकेज इंस्टॉल करें

flutter pub add dash_flags

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

dash_flags एक Flutter पैकेज है जो देश और भाषा के झंडे दिखाने के लिए विजेट्स और उपयोगी संख्याओं का संग्रह प्रदान करता है। इसलिए यह ऐप में झंडे के आइकन को शामिल करने को सरल बनाता है, जिसमें प्लेटफ़ॉर्म के अनुसार स्थिर और पूर्व-निर्धारित झंडे प्रतिनिधित्व शामिल है। यह पैकेज Android, iOS, Web, macOS, Windows और Linux जैसे कई प्लेटफ़ॉर्म को समर्थन देता है, जिससे व्यापक सुविधा मिलती है। डेवलपर्स आसानी से झंडे का चयन और प्रदर्शन कर सकते हैं, जो स्थानीयकरण, उपयोगकर्ता इंटरफ़ेस सुधार या क्षेत्र-आधारित विशेषताओं के लिए उपयुक्त है।

उपयोग

  • उपयोगकर्ता प्रोफ़ाइल में देश के झंडे प्रदर्शित करना
  • भाषा चयन इंटरफेस कार्यान्वयन
  • स्थानीयकरण यूआई को बढ़ावा देना
  • एप्स में क्षेत्रीय संकेतक दिखाएं
  • बहुभाषी ऐप इंटरफेस बनाना

मुख्य विशेषताएँ

  • पूर्व-निर्मित फ्लैग विजेट्स
  • देश और भाषा के झंडों का समर्थन
  • प्लेटफॉर्म-अनुकूल डिज़ाइन
  • सहज एनुम-आधारित फ्लैग चयन
  • हल्का और एकीकरण में आसान

इनके लिए उपयुक्त

  • स्थानीयकरण विशेषताएं
  • बहुभाषी एप्लिकेशन
  • उपयोगकर्ता प्रोफ़ाइल कस्टमाइज़ेशन
  • क्षेत्र-आधारित सामग्री फ़िल्टरिंग
  • दृश्य संकेतों के साथ उपयोगकर्ता अनुभव/उपयोगकर्ता अनुभव सुधार

विचार योग्य बातें

  • पूर्वनिर्धारित फ्लैग सेट तक सीमित
  • कस्टम फ्लैग समर्थन नहीं
  • बाहरी फ्लैग संपत्तियों पर निर्भर
  • नए देश/भाषा कोड के लिए अपडेट की आवश्यकता हो सकती है
  • स्केल पर उच्च-प्रदर्शन झंडा रेंडरिंग के लिए अनअनुकूलित

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Dash Flags Banner

Dash Flags

Platform Pub Package License: BSD-3-Clause
GitHub code size in bytes Star on GitHub GitHub Open Issues GitHub Last Commit Date


💡 Overview

A Flutter package for displaying Countries and Languages flags 🌍

This package provides a set of widgets and enums to display flags of countries and languages inspired by blade-flags package for Laravel by Mohamed Ashraf from Egypt.

The package uses flags from TwEmoji Countries & Languages Flags by Twitter

Animated Example
This GIF is taken from the Example Project

💻 Usage

Import the package:

import 'package:dash_flags/dash_flags.dart';

Display a flag of a country:

CountryFlag(
  country: Country.eg, // OR Country.fromCode('eg')
  height: 50,
)

Display a flag of a language:

LanguageFlag(
  language: Language.ar, // OR Language.fromCode('ar')
  height: 50,
)

Display a flag of a timezone:

TimezoneFlag(
  timezone: Timezone.africa_cairo, // OR Timezone.fromString('Africa/Cairo')
  height: 50,
)

📘 You can checkout the complete API Reference here

📃 Notes

Countries & Languages Codes:
  • If you have the Country Code or Language Code as Strings, then you can use Country.fromCode(countryCode) or Language.fromCode(languageCode).
  • If the the Country Code or Language Code consists of more than one part, then you will find it separated by an underscore, for example: sh_ac and en_au.
  • If the the Country Code or Language Code is a reserved keyword in Dart, then you will find it prefixed with c_ or l_ respectively, for example: c_as and l_as.
  • If an unknown Country Code or Language Code used with .fromCode(String) method, an unknown flag would be displayed.
Timezones Codes:
  • The forward slash sign / in the name of the timezone is replaced with an underscore _.
  • If the Timezone contains minus - sign, then you will find it replaced with _minus_, for example: US_East_minus_Indiana, US_Indiana_minus_Starke, and Asia_Ust_minus_Nera
  • If the Timezone contains plus + sign, then you will find it replaced _plus_, for example: Etc_GMT_plus_0, Etc_GMT_plus_1, and Etc_GMT_plus_10
  • If the Timezone is associated with more than one country, then you will find a default enum member for it and other enum members for each country, for example: Africa_Johannesburg, Africa_Johannesburg_ZA, Africa_Johannesburg_LS, and Africa_Johannesburg_SZ
  • If you have the Timezone as String and you want to get the corresponding Timezone enum member, then you can use .fromString() method.
  • If you want to use the Timezone with its original name without the above changes, then use .fromString() method, for example: Timezone.fromString('Africa/Cairo')

✅ Roadmap

  • [ ] Add Tests 🧪
  • [ ] Add a simple way to use the raw svg assets 🎨
  • [ ] Make an online Gallery with all the available flags 📘
  • [ ] Add the ability to use the flags from the internet, such as, CountryFlag.network(...) 🌐
  • [ ] Add the ability to automatically detect the current Country or Language, such as, Country.autoDetect & Language.autoDetect 🕵🏻‍♂️

💖 Laravel Version

If you are looking for a Laravel Version of this package, check blade-flags, the original parent package of this library which that provides a set of flags for all countries and languages by Mohamed Ashraf from Egypt.

Blade Flags Banner

💪🏻 Contribution Guide

I would be happy to have your contributions 💙

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an Issue.
If you fixed a bug or implemented a feature, please send a Pull Request.

Made with contrib.rocks.

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट