defines.dart 574 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/widgets.dart';
import 'package:flutter_driver/driver_extension.dart';

/// This application displays text passed through a --dart-define.
void main() {
  enableFlutterDriverExtension();
  runApp(
    const Center(
      child: Text(
14
        String.fromEnvironment('test.valueA') + String.fromEnvironment('test.valueB'),
15 16 17 18 19
        textDirection: TextDirection.ltr,
      ),
    ),
  );
}