Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
import 'package:flutter/material.dart';
import 'package:separating_build_environments/app_config.dart';
class MyHomePage extends StatefulWidget {
_MyHomePageState createState() => new _MyHomePageState();
class _MyHomePageState extends State<MyHomePage> {
Widget build(BuildContext context) {
var config = AppConfig.of(context);
return new Scaffold(
appBar: new AppBar(
title: new Text(config.appName),
body: new Center(
child: new Column(
children: <Widget>[
new Text('This is the ${config.flavorName} app.'),
new Text('Backend API url is ${config.apiBaseUrl}'),