Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

29 lines (26 sloc) 775 Bytes
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}'),
You can’t perform that action at this time.