I wonder if the trouble is that you haven't set an onPressed handler for the button. Without an onPressed handler, the button will be disabled (and therefore gray). Here's an example of a green button:
import 'package:flutter/material.dart';
class ButtonApp extends StatelessComponent {
Widget build(BuildContext context) {
return new Material(
child: new Column(
children: <Widget>[
new RaisedButton(
onPressed: () {
print('first');
},
child: new Text("first")
),
new RaisedButton(
color: Colors.green[500],
onPressed: () {
print('second');
},
child: new Text("second")
),
],
justifyContent: FlexJustifyContent.spaceAround
)
);
}
}
void main() {
runApp(new ButtonApp());
}
That should produce a green button on the bottom.
Adam