flutter-dev
यह क्या करती है
यह स्किल Flutter और Dart से क्रॉस-प्लेटफ़ॉर्म ऐप बनाने की गाइड है। यह उन डेवलपर्स के लिए है जो स्क्रीन, स्टेट, नेविगेशन और परफ़ॉर्मेंस के लिए परखे हुए पैटर्न चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप फ़ोन या दूसरे प्लेटफ़ॉर्म के लिए Flutter ऐप बनाते हैं।
- ✓जब आपको Riverpod या Bloc जैसा स्टेट मैनेजमेंट तरीका चुनना है।
- ✓जब आपका Flutter ऐप धीमा लगता है और आप उसकी परफ़ॉर्मेंस सुधारना चाहते हैं।
Skill का लिंक
https://github.com/MiniMax-AI/skills/blob/main/skills/flutter-dev/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं Flutter शॉपिंग ऐप बनाना चाहता हूँ, जिसमें पेज नेविगेशन हो और प्रोडक्ट सूची तेज़ी से लोड हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल widget और परफ़ॉर्मेंस पैटर्न की तालिकाएँ देती है, साथ में मूल नियम, जैसे const constructors इस्तेमाल करना। एजेंट इन पैटर्न को आपके बताए स्क्रीन और फ़ीचर पर लागू करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Flutter Development Guide
A practical guide for building cross-platform applications with Flutter 3 and Dart. Focuses on proven patterns, state management, and performance optimization.
Quick Reference
Widget Patterns
| Purpose | Component |
|---|---|
| State management (simple) | StateProvider + ConsumerWidget |
| State management (complex) | NotifierProvider / Bloc |
| Async data | FutureProvider / AsyncNotifierProvider |
| Real-time streams | StreamProvider |
| Navigation | GoRouter + context.go/push |
| Responsive layout | LayoutBuilder + breakpoints |
| List display | ListView.builder |
| Complex scrolling | CustomScrollView + Slivers |
| Hooks | HookWidget + useState/useEffect |
| Forms | Form + TextFormField + validation |
Performance Patterns
| Purpose | Solution |
|---|---|
| Prevent rebuilds | const constructors |
| Selective updates | ref.watch(provider.select(...)) |
| Isolate repaints | RepaintBoundary |
| Lazy lists | ListView.builder |
| Heavy computation | compute() isolate |
| Image caching | cached_network_image |
Core Principles
Widget Optimization
- Use
constconstructors wherever possible - Extract static widgets to separate const classes
- Use
Keyfor list items (ValueKey, ObjectKey) - Prefer
ConsumerWidgetoverStatefulWidgetfor state
State Management
- Riverpod for dependency injection and simple state
- Bloc/Cubit for event-driven workflows and complex logic
- Never mutate state directly (create new instances)
- Use
select()to minimize rebuilds
Layout
- 8pt spacing increments (8, 16, 24, 32, 48)
- Responsive breakpoints: mobile (<650), tablet (650-1100), desktop (>1100)
- Support all screen sizes with flexible layouts
- Follow Material 3 / Cupertino design guidelines
Performance
- Profile with DevTools before optimizing
- Target <16ms frame time for 60fps
- Use
RepaintBoundaryfor complex animations - Offload heavy work with
compute()
Checklist
Widget Best Practices
-
constconstructors on all static widgets - Proper
Keyon list items -
ConsumerWidgetfor state-dependent widgets - No widget building inside
build()method - Extract reusable widgets to separate files
State Management
- Immutable state objects
-
select()for granular rebuilds - Proper provider scoping
- Dispose controllers and subscriptions
- Handle loading/error states
Navigation
- GoRouter with typed routes
- Auth guards via redirect
- Deep linking support
- State preservation across routes
Performance
- Profile mode testing (
flutter run --profile) - <16ms frame rendering time
- No unnecessary rebuilds (DevTools check)
- Images cached and resized
- Heavy computation in isolates
Testing
- Widget tests for UI components
- Unit tests for business logic
- Integration tests for user flows
- Bloc tests with
blocTest()
References
| Topic | Reference |
|---|---|
| Widget patterns, const optimization, responsive layout | Widget Patterns |
| Riverpod providers, notifiers, async state | Riverpod State Management |
| Bloc, Cubit, event-driven state | Bloc State Management |
| GoRouter setup, routes, deep linking | GoRouter Navigation |
| Feature-based structure, dependencies | Project Structure |
| Profiling, const optimization, DevTools | Performance Optimization |
| Widget tests, integration tests, mocking | Testing Strategies |
| iOS/Android/Web specific implementations | Platform Integration |
| Implicit/explicit animations, Hero, transitions | Animations |
| Dio, interceptors, error handling, caching | Networking |
| Form validation, FormField, input formatters | Forms |
| i18n, flutter_localizations, intl | Localization |
Flutter, Dart, Material Design, and Cupertino are trademarks of Google LLC and Apple Inc. respectively. Riverpod, Bloc, and GoRouter are open-source packages by their respective maintainers.
अक्सर पूछे जाने वाले सवाल
यह गति बढ़ाने में कैसे मदद करती है?
यह const constructors, चुनिंदा अपडेट और lazy lists जैसे पैटर्न सुझाती है, ताकि बेवजह rebuild न हों।
यह कौन-सा नेविगेशन इस्तेमाल करती है?
स्क्रीन के बीच आने-जाने के लिए GoRouter।
क्या इसमें टेस्टिंग शामिल है?
हाँ। स्किल में टेस्टिंग रणनीतियाँ और DevTools प्रोफ़ाइलिंग शामिल हैं।
जानकारी
लेखक का मूल विवरण
Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platform-specific implementations. Includes const optimization, responsive layouts, testing strategies, and DevTools profiling. Use when: building Flutter apps, implementing state management (Riverpod/Bloc), setting up GoRouter navigation, creating custom widgets, optimizing performance, writing widget tests, cross-platform development.
repo: MiniMax-AI/skills
लोकप्रियता
- GitHub स्टार
- 14k
- रैंकिंग में स्थान
- #11288
- लाइसेंस
- MIT
- अपडेट की गई
- 18/4/2026
कमेंट
- …
इस repository की और skills
design-style-skill
14kयह आपके एजेंट को स्लाइड के लिए एक एकसमान विज़ुअल स्टाइल चुनने में मदद करती है, तीखे और कॉम्पैक्ट से लेकर नरम, गोल या खुले तक, मेल खाते कोनों और spacing के साथ।
ppt-editing-skill
14kयह आपके एजेंट को मौजूदा PowerPoint फ़ाइल या टेम्पलेट सुरक्षित रूप से बदलने में मदद करती है, टेक्स्ट बदलकर, स्लाइड का क्रम बदलकर या हटाकर, और सही डेक दोबारा पैक करके।
ppt-orchestra-skill
14kयह आपके एजेंट को बनाने से पहले पूरे PowerPoint डेक की योजना बनाने में मदद करती है, हर स्लाइड को मानक पेज प्रकार में रखकर और विविधता व टेक्स्ट गुणवत्ता जाँचकर।
slide-making-skill
14kयह आपके एजेंट को JavaScript में PptxGenJS से एकल PowerPoint स्लाइड लिखने में मदद करती है, नेटिव .pptx फ़ाइलों के लिए लेआउट, टेक्स्ट, इमेज, चार्ट और फ़ॉन्ट सहित।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।