संजर्बेक फ़यजुल्लाएव द्वारा निर्मित फ्लटर पैकेज, स्पष्ट आर्किटेक्चर और उत्तम अभ्यास के साथ कुशल, विस्तारशील और उपयोगकर्ता-अनुकूल मोबाइल एप्लिकेशन बनाने के लिए।
सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
एक फ्लटर पैकेज जो मोबाइल और वेब एप्लिकेशन में उपयोग के लिए उच्च गुणवत्ता वाले देश के झंडे का संग्रह प्रदान करता है। साफ आर्किटेक्चर और सर्वोत्तम प्रथाओं के साथ डिज़ाइन किया गया, यह डेवलपर्स को देश चयनकर्ता या देश कोड चयनकर्ता घटकों में देश के झंडे को दक्षता से एकीकृत करने में सक्षम बनाता है। यह पैकेज एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स जैसे कई प्लेटफॉर्म को समर्थन देता है, उपकरणों के बीच सुसंगत प्रदर्शन सुनिश्चित करता है। यह स्थानीयकरण, उपयोगकर्ता ऑनबोर्डिंग या अंतरराष्ट्रीयकरण विशेषताओं की आवश्यकता वाले एप्लिकेशन के लिए आदर्श है।
उपयोग
अंतर्राष्ट्रीयकृत ऐप इंटरफेस
उपयोगकर्ता ऑनबोर्डिंग के साथ देश चयन
देश के झंडे के साथ फ़ोन नंबर इनपुट
यात्रा और लॉजिस्टिक्स ऐप्स
बहुभाषी समर्थन
ई-कॉमर्स चेकआउट प्रवाह
मुख्य विशेषताएँ
पूर्व-निर्मित, स्केलेबल फ्लैग संसाधन
क्रॉस-प्लेटफॉर्म संगतता
साफ़, बनाए रखने योग्य कोड संरचना
देश चयनकर्ता के साथ आसान एकीकरण
प्रदर्शन के लिए अनुकूलित
डार्क मोड का समर्थन करता है
इनके लिए उपयुक्त
वैश्विक ऐप बनाने वाले डेवलपर्स
क्लीन आर्किटेक्चर का उपयोग करने वाली टीमें
देश चयन की आवश्यकता वाले ऐप
फ्रंटएंड-केंद्रित फ्लटर प्रोजेक्ट्स
कई ऑपरेटिंग सिस्टम का लक्ष्य बनाने वाले प्रोजेक्ट
विचार योग्य बातें
नए देशों के लिए हस्तचालित झंडा संपत्ति अद्यतन की आवश्यकता है
फ्लैग स्टाइलिंग के लिए सीमित कस्टमाइजेशन विकल्प
निर्मित देश का नाम अनुवाद नहीं है
झंग के चित्रों के लिए बाहरी स्रोत पर निर्भर
कैशिंग के बिना ऑफलाइन केवल एप्लिकेशन के लिए उपयुक्त नहीं
पूर्ण फ़्लैग सेट करने पर बंडल आकार थोड़ा बढ़ सकता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
country_flags_pro is a Flutter package that allows you to display country flags in SVG format. This package lets you easily fetch and display flags based on country codes.
🚀 Why Use country_flags_pro?
✔ Works Offline – No internet required! 🌍
✔ Fast & Lightweight – Flags load instantly. ⚡
✔ Optimized SVG – High-quality flag images. 🏴
Installation
To use this package, add the following dependencies to your pubspec.yaml file:
import'package:flutter/material.dart';
import'package:flutter/material.dart';
import'package:country_flags_pro/country_flags_pro.dart';
voidmain() {
runApp(constMyApp());
}
classMyAppextendsStatelessWidget{
constMyApp({super.key});
// This widget is the root of your application.@overrideWidgetbuild(BuildContext context) {
returnMaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.// TRY THIS: Try running your application with "flutter run". You'll see// the application has a purple toolbar. Then, without quitting the app,// try changing the seedColor in the colorScheme below to Colors.green// and then invoke "hot reload" (save your changes or press the "hot// reload" button in a Flutter-supported IDE, or press "r" if you used// the command line to start the app).//// Notice that the counter didn't reset back to zero; the application// state is not lost during the reload. To reset the state, use hot// restart instead.//// This works for code too, not just values: Most code changes can be// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: HomePage(),
);
}
}
classHomePageextendsStatelessWidget{
var list = CountryFlagsPro.validCountryCodes;
staticIterable<String> mapCountryCodeName =
CountryFlagsPro.countryCodeAndName.values;
staticList<String> listName = mapCountryCodeName.toList();
@overrideWidgetbuild(BuildContext context) {
returnScaffold(
body: GridView.builder(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2),
itemCount: list.length,
itemBuilder: (context, index) {
returnPadding(
padding: EdgeInsets.all(20),
child: CountryFlagsPro.getFlag(list[index], // Country code
width: 100.0, // Flag width
height: 400.0, // Flag height
fit: BoxFit.cover, // Flag fit
borderRadius: BorderRadius.circular(400), //Flag border radius
borderColor: Colors.black87, //Flag border color
borderWidth: 6//Flag border width
),
);
},
),
);
}
}
🌍 Platform Support
Platform
Supported
✅ Android
✅ Yes
✅ iOS
✅ Yes
✅ Web
✅ Yes
✅ Windows
✅ Yes
✅ macOS
✅ Yes
✅ Linux
✅ Yes
🌍 Available Flags
This package supports all official country flags in SVG format. Example: