mirrored_repositories/flutter_learning/17_flutter_ble_lib_example/lib/device_details

import 'package:flutter/material.dart';

class ButtonView extends StatelessWidget {

  final String _text;
  final Function action;

  ButtonView(this._text, { this.action });

  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: Padding(
        padding: const EdgeInsets.all(2.0),
        child: RaisedButton(
          color: Colors.blue,
          textColor: Colors.white,
          child: Text(_text),
          onPressed: action,
        ),
      ),
    );
  }
}