Skip to content

Instantly share code, notes, and snippets.

@nb312
Created January 20, 2019 18:09
Show Gist options
  • Save nb312/c23cf05515c8a6cf00730652a4b77baf to your computer and use it in GitHub Desktop.
Save nb312/c23cf05515c8a6cf00730652a4b77baf to your computer and use it in GitHub Desktop.
Widget _themeButton() => Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SizedBox(height: 10),
RaisedButton(
onPressed: () {
print("click");
},
child: Text(
"textTheme:normal",
style: TextStyle(fontSize: 40),
),
textTheme: ButtonTextTheme.normal,
),
RaisedButton(
onPressed: () {
print("click");
},
child: Text(
"textTheme:accent",
style: TextStyle(fontSize: 40),
),
textTheme: ButtonTextTheme.accent,
),
RaisedButton(
onPressed: () {
print("click");
},
child: Text(
"textTheme:primary",
style: TextStyle(fontSize: 40),
),
textTheme: ButtonTextTheme.primary,
),
],
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment