Expert Build Variants For Flutter Apps

The Dart Compiler has some new settings that allow us to define compile-time DEFINE variables and define a target main file, but it takes a strategy to use them correctly. I am going to show you a strategy that keeps you from having to duplicate code into separate mains in each build variant.

The reason why we use build variants is to be able to change environment parameters per our debug…

--

--

--

Flutter Cross Platform Mobile App Design https://keybase.io/fredgrott

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Coding Bootcamp — is it worth the hype?

What’s a Senior Web Developer

Rails: Validation

Transactions Categorization

Linux — Zenity command

Infrastructure Migration with AWX (Ansible Tower) Workflow

How we got Cypress running solid tests in Continuous Integration

26 Types, Types, Types: Modeling λ Calculus

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Fred Grott

Fred Grott

Flutter Cross Platform Mobile App Design https://keybase.io/fredgrott

More from Medium

Flutter Golden Testing with Bloc

Flutter: BLoC + Freezed — Write less code

Using themes in Flutter

Use themes in Flutter

Understanding Default Flutter Project Structure