Flutter Mobile App

PatternIntermediate

One codebase for Android and iOS apps, with a back-end service or local storage.

Components

  • Widgets
  • State management
  • Data layer
  • Local storage or API

When it fits

  • Mobile apps for both platforms with a small team.

Avoid it when

  • Tools that only run in the browser.

Risks

  • Secrets inside the app that can be extracted from the package.
Suggested structure
lib/main.dart
lib/screens/
lib/services/
test/

Sources

  1. Flutter: Testing Flutter apps