Skip to content

Instantly share code, notes, and snippets.

@nb312
Created January 20, 2019 18:05
Show Gist options
  • Save nb312/e08274e4dd06c8dcb1794ab47ed8ae5a to your computer and use it in GitHub Desktop.
Save nb312/e08274e4dd06c8dcb1794ab47ed8ae5a to your computer and use it in GitHub Desktop.
use colors.
Widget _colorsButton() => Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SizedBox(height: 10),
RaisedButton(
onPressed: () {
print("click");
},
child: Text(
"color:PURPLE\ntextColor: Colors.white\nhighlightColor: RED\nsplashColor: BLUE_DEEP",
style: TextStyle(fontSize: 40),
),
color: PURPLE,
textColor: Colors.white,
highlightColor: RED,
splashColor: BLUE_DEEP,
),
SizedBox(height: 10),
RaisedButton(
onPressed: null,
child: Text(
" onPressed: null \ndisabledColor: YELLOW,\n disabledTextColor: TEXT_BLACK,",
style: TextStyle(fontSize: 40),
),
disabledColor: YELLOW,
disabledTextColor: TEXT_BLACK,
),
],
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment