mirrored_repositories/Flutter-Mobile-Application-Development/First_Flutter_App
import 'package:flutter/material.dart';

class Answer extends StatelessWidget {
  final Function SelectHandler;
  final String answer;
  Answer(this.SelectHandler, this.answer);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      child: RaisedButton(
        color: Colors.black,
        textColor: Colors.amberAccent,
        child: Text(answer),
        onPressed: SelectHandler,
      ),
    );
  }
}
