blob: 9efd4c2c64eb6f2f7d603c6b0e9fa2ba46360080 [file] [log] [blame]
// Copyright 2019 The Fuchsia 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/material.dart';
import 'package:fuchsia_logger/logger.dart';
void main() {
setupLogger(name: 'button_flutter');
final app = MaterialApp(
home: Material(
color: Colors.white,
child: Container(
child: FlatButton(
child: Text('I am a button'),
onPressed: () {
log.info('FlatButton.onPressed');
},
),
alignment: Alignment(0.0, 0.0),
),
),
);
runApp(app);
}