thiennc-tesoglobal/flutter-skills

flutter-architecture

Select, review, or evolve Flutter application boundaries, dependency direction, and feature organization.

View source
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

Flutter Architecture

Choose the least complex architecture that keeps responsibilities clear, state testable, and dependencies replaceable.

Preserve before migrating

Inspect the existing feature structure, state mechanism, dependency injection, data sources, tests, and team conventions. Extend a coherent architecture even when it differs from a preferred example. Propose migration only for a concrete problem and make it incremental.

Baseline boundaries

  • Views render state and forward user intent; keep data access and business rules outside widgets.
  • Presentation logic owns UI state and commands.
  • Repositories are the source of truth for domain data and coordinate services or caches.
  • Services wrap external systems such as HTTP, storage, and platform plugins.
  • Add use cases/domain services only when logic is reused, complex, or otherwise clutters presentation state.
  • Point dependencies inward through explicit interfaces where replacement or testing justifies them.

The Flutter team's MVVM guidance is a useful default for a new scalable application, not a mandate to replace Riverpod, Bloc, Redux, or an established feature-first design.

Organization

Prefer user-facing feature boundaries. Place genuinely shared infrastructure in a small core area. Avoid global folders that accumulate unrelated models, widgets, and helpers.

Load greenfield and evolution for new-project choices or incremental migrations. Load feature boundaries and dependency rules when modules leak across features or ownership is unclear.

Verification

Demonstrate the dependency path for one feature, test presentation logic without rendering widgets where practical, and confirm no circular or UI-to-infrastructure shortcuts were introduced.

Sources

from this repository

More skills

All skills
thiennc-tesoglobal
Community

flutter-ai-integration

Build or review provider-neutral AI features in Flutter, including streaming responses, conversation state, structured output, tool calls, attachments, cancellation, and safe service boundaries. Use when model behavior is part of the product; do not use for ordinary APIs, product analytics, or generic chat between people.

installs
1
GitHub stars
7
Updated
Sep 9
thiennc-tesoglobal
Community

flutter-animation

Implement or diagnose Flutter motion with implicit, explicit, route, Hero, staggered, and physics-based animations. Use when timing, transition, or motion behavior is requested or broken; route optical materials, shaders, general layout, and performance profiling to their specialists.

installs
1
GitHub stars
7
Updated
Sep 9
thiennc-tesoglobal
Community

flutter-authentication

Implement, repair, or review Flutter user authentication and session lifecycle, including OAuth or OIDC redirects, PKCE, token refresh, logout, account switching, passkeys, and device re-authentication. Use when sign-in identity or session behavior is the task; route broad threat audits to flutter-security and request transport to flutter-networking.

installs
1
GitHub stars
7
Updated
Sep 9
thiennc-tesoglobal
Community

flutter-background-execution

Implement, debug, or verify Flutter work that must continue or be scheduled after the app leaves the foreground, including OS-scheduled jobs, foreground services, and headless callbacks. Use for persistent background execution; route in-process async or CPU work to dart-concurrency and notification delivery to flutter-notifications.

installs
1
GitHub stars
7
Updated
Sep 9