mobile_flutter

Implements Flutter and Dart applications with Riverpod state management and performance optimization.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/jvsandhu/agentic-skills --skill mobile-flutter-jvsandhu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mobile_flutter
Source: https://github.com/jvsandhu/agentic-skills/tree/main/skills/mobile_flutter
Command: npx skills add https://github.com/jvsandhu/agentic-skills --skill mobile-flutter-jvsandhu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building maintainable Flutter apps requires consistent architecture, efficient state management, and performance discipline, which are hard to enforce without a structured workflow. ## Core Features & Use Cases - Feature-First Architecture: Organizes code into Presentation, Domain, and Data layers per feature for clean separation of concerns. - Riverpod State Management: Provides StateNotifier and NotifierProvider patterns with code generation for predictable app state. - Performance Optimization: Covers const constructors, ListView.builder lazy loading, RepaintBoundary, and isolates for CPU-heavy work. - Use Case: When building a cross-platform mobile app with authentication and API integration, use this Skill to scaffold the layered structure, wire up Riverpod providers, secure tokens with flutter_secure_storage, and validate responsiveness across tablets and foldables. ## Quick Start Use the mobile_flutter skill to set up a feature-first Flutter project structure with Riverpod state management for a new authentication feature.

Frequently Asked Questions about mobile_flutter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Flutter project for scalability?

Use a feature-first structure where each feature contains its own data, domain, and presentation layers, with shared code in a core directory. This keeps business logic separated from UI widgets and makes features independently testable.

How to manage state in Flutter with Riverpod?

Define providers like StateNotifierProvider that expose a notifier class holding immutable state, then update state via copyWith methods. Riverpod code generation with the @riverpod annotation simplifies provider creation and dependency injection.

Riverpod vs Provider for Flutter state management?

Riverpod is the recommended evolution of Provider, offering compile-time safety, no BuildContext dependency, and better testability. This Skill standardizes on Riverpod with NotifierProvider and code generation.

How do I store tokens securely in Flutter?

Use the flutter_secure_storage package, which writes values to platform keychains (Keychain on iOS, Keystore on Android). Call storage.write with a key and value, then read it back with storage.read when authenticating API requests.

Why does my Flutter app drop frames during scrolling?

Frame drops (jank) usually come from rebuilding large widget trees or doing heavy work on the main isolate. Use ListView.builder for lazy rendering, wrap expensive widgets in RepaintBoundary, and offload parsing to compute isolates.

How do I make Flutter layouts responsive for tablets?

Use MediaQuery to check screen width or LayoutBuilder to read constraints, then switch between wide and narrow layouts at breakpoints like 600 pixels. This handles tablets and foldables without separate codebases.