How to Build a Native App with Flutter, Step by Step
Flutter compiles one Dart codebase into native apps for iOS and Android. This guide covers setup, the build steps, platform features, testing and release.
On this page
Short answer
Building a native app with Flutter means writing one Dart codebase that compiles to native machine code for iOS and Android, with the interface drawn by Flutter's own rendering engine. You add platform-specific features through plugins or platform channels, then test on real devices and release through the App Store and Google Play.
What does building a native app with Flutter mean?
Building a native app with Flutter means writing the app once in Dart and compiling it into a native binary for each platform, rather than running it inside a web view. Flutter draws the interface with its own rendering engine, so buttons, lists and animations look the same on iOS and Android unless you deliberately use platform-specific widgets.
The result is a genuine installed app: it appears on the home screen, works offline, uses the camera and sensors, and can send push notifications. The difference from a fully native Swift or Kotlin app is where the code lives. With Flutter, the shared logic and interface live in one codebase, and only the features that need the operating system reach down to native code.
Flutter suits apps where the interface and logic are largely the same on both platforms: booking apps, dashboards, field tools, customer portals and internal tools. It is a weaker fit when the app is mostly a thin shell over deep platform features, such as a video editor that leans on native media frameworks. That trade-off is the first decision to make, before writing any code.
What do you need before you start?
You need a small, standard setup before the first screen. Flutter's own tooling checks the installation for you, so missing pieces surface early instead of at release time.
| Piece | What it does | Typical choice |
|---|---|---|
| Flutter SDK | Framework, compiler and command-line tools | Latest stable release |
| Dart | Programming language for app code | Bundled with the SDK |
| Editor | Code, debugging and device control | VS Code or Android Studio |
| Emulator or device | Running and testing the app | One Android and one iOS device |
| Developer accounts | Store submission and signing | Apple Developer and Google Play |
On a Mac you can build for both iOS and Android; on Windows or Linux you can build for Android and use a cloud build service or a Mac for the iOS binary. Set up signing early, because a release build that has never been signed is a common late surprise. Run the Flutter doctor command after installing and fix every item it flags.
How do you build a native app with Flutter?
You build a Flutter app in a short sequence: scaffold the project, shape the interface, connect data, add platform features, then test and release. Each step has a clear exit point, so you can stop and review before the next one.
- Scaffold the project. Create the app with the Flutter command-line tool, set the package name, and confirm it runs on an emulator with the starter counter app.
- Map the screens. List the screens a user actually needs, in the order they use them, and sketch each one before coding.
- Build the interface with widgets. Compose screens from Flutter widgets, keeping each widget small and named after what it shows. Put shared pieces such as buttons and cards in one place.
- Add state management. Choose one approach for holding app state, such as a simple provider pattern, and use it everywhere. Mixing state approaches in one app is a common source of bugs.
- Connect data. Call your API or local database from a single data layer, with error handling for offline use and slow networks.
- Add platform features. Use published plugins for camera, location, storage and notifications; write platform channels only for features no plugin covers.
- Test and release. Run widget and integration tests, test on real devices, then build signed release binaries for each store.
Work in this order and the app stays shippable from the second week. Mobile app development follows the same sequence when a team builds for one platform at a time.
Example: a small booking app built with Flutter
Example (hypothetical): a local clinic wants one app where patients book appointments on iPhone and Android. The team has two developers and eight weeks before the current phone-only booking system is replaced.
Week one is setup and screens: the project scaffolds, the team maps four screens (services, slots, patient details, confirmation), and the starter app runs on both emulators. Weeks two to four cover the interface and the booking API, with a simple provider holding the selected slot and patient details. Week five adds push notifications through a published plugin and a native calendar entry through a platform channel, because no plugin matches the clinic's calendar format.
The arithmetic of the schedule is simple: 2 developers × 8 weeks × 5 working days gives 80 developer-days. The team budgets 12 days for screens, 20 for the booking flow and data, 10 for platform features, 18 for testing and fixes, and keeps 20 days as buffer for store review and rework. That buffer is what keeps the launch date honest.
By week eight the app is in both stores, the clinic's receptionists use the same booking API as the app, and the team has one codebase to maintain instead of two. The shared code is the point: a fix to the booking logic ships to both platforms at once.
How do you handle platform-specific features?
You handle platform-specific features in three layers, and most apps never need the third. The first layer is Flutter widgets that adapt: the framework provides Cupertino widgets that look native on iOS and Material widgets for Android, so the same code can present a familiar interface on each platform.
The second layer is plugins. The Flutter ecosystem has published plugins for the features most apps need: camera, geolocation, secure storage, push notifications, in-app purchases and file access. Check that a plugin is maintained, supports the platforms you target, and has a clear licence before depending on it. A plugin that has not been updated for a year is a risk, not a shortcut.
The third layer is platform channels, which let Dart code call Swift, Kotlin or Java directly. You need them when a feature has no plugin, or when you must use a specific native SDK, such as a proprietary payment terminal. Keep the channel surface small: one method per action, with plain data types crossing the boundary. For a deeper comparison of approaches, see Flutter vs native development.
How do you test and release the app?
You test a Flutter app at three levels, and each level catches different failures. Widget tests check that a single screen renders and responds to taps. Integration tests drive the whole app on a device or emulator, walking through the booking flow end to end. Manual testing on real devices catches the things automated tests miss: keyboard behaviour, slow networks, permission dialogs and low-battery mode.
Test on the oldest devices you plan to support, not only the newest phone in the office. Performance problems and layout breaks show up first on small screens and older hardware. Also test with the device language changed and with accessibility text sizes increased, since both change layout in ways an emulator with default settings will not show.
For release, build a signed app bundle for Google Play and a signed archive for the App Store, then submit through each store's review process. Store review can take days and can reject the app for missing privacy disclosures or broken links, so submit a week before the date you promised. Keep the version number and release notes in the project, and tag the release in source control so you can rebuild exactly what shipped.
What are the common mistakes?
The most common Flutter mistakes are treating the framework as a shortcut that removes planning, letting state spread across the app, and leaving the release process to the last day.
- Skipping the screen map. Coding screens in the order ideas arrive produces an app with no coherent flow and duplicate widgets.
- Three state approaches at once. Pick one state pattern early and use it consistently, or debugging becomes guesswork.
- Depending on unmaintained plugins. Check maintenance and platform support before building on a plugin.
- Testing only on emulators. Real devices expose performance, permission and layout problems that emulators hide.
- Leaving signing and store accounts to the end. Set up developer accounts and signing in week one, not release week.
- Ignoring app size. Unused assets and debug symbols inflate the download; check the release size before submitting.
Before choosing Flutter over a native build, compare the costs and trade-offs in Flutter app development cost.
Flutter vs React Native covers the other cross-platform choice in the same detail.
Key takeaways
- Flutter compiles one Dart codebase into native apps for iOS and Android
- Map the screens before coding; the screen list is the real plan
- Use plugins for common platform features and platform channels only for the rest
- One state pattern, used everywhere, keeps the app debuggable
- Test on real, older devices and set up store signing in week one
Frequently asked questions
Do I need to know Dart before learning Flutter?
Yes, at a basic level. Dart is a straightforward language if you already know JavaScript, Java or C#, and Flutter's documentation includes a Dart tour for developers from other languages. You can learn both together, but reading Dart code fluently makes debugging far faster.
Is a Flutter app a real native app?
Yes, in the sense that it installs from the store, compiles to native machine code and can use device features. The interface is drawn by Flutter's rendering engine rather than by native UI controls, which is why the same code looks consistent on both platforms.
Can Flutter apps use the camera, GPS and notifications?
Yes, through published plugins for the common features and platform channels for anything unusual. Camera, location, secure storage and push notifications all have maintained plugins. Check that a plugin supports both of your target platforms before relying on it.
How long does it take to build a first Flutter app?
A small app with four or five screens typically takes a small team several weeks, including testing and store review. The biggest variables are the backend, the number of platform-specific features and how much design is already decided. Store review alone can take days.
Should I choose Flutter or build two native apps?
Choose Flutter when the interface and logic are largely the same on both platforms and speed of delivery matters. Choose two native apps when the product depends heavily on platform-specific frameworks, such as advanced media editing or augmented reality.
What does Flutter cost to use?
Flutter and Dart are open source and free to use. The costs are developer time, Apple Developer and Google Play accounts, and any backend or third-party services the app needs. See vendor sites for current store account pricing.