Translation link

This commit is contained in:
Vicente J. Ruiz Jurado 2018-08-17 07:03:11 +02:00
parent f315523dd1
commit 859e0b0c89
4 changed files with 37 additions and 2 deletions

View file

@ -56,6 +56,19 @@ class _SupportPageState extends State<SupportPage> {
);
}
Widget buildTranslateButton() {
return new Align(
alignment: const Alignment(0.0, -0.2),
child: new OutlineButton.icon(
icon: const Icon(Icons.translate),
label: new Text(S.of(context).translateBtn),
onPressed: () {
launch("https://translate.comunes.org/projects/todos-contra-el-fuego/");
},
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
@ -75,6 +88,8 @@ class _SupportPageState extends State<SupportPage> {
new SizedBox(height: 20.0),
buildSupportButton(),
new SizedBox(height: 20.0),
buildTranslateButton(),
new SizedBox(height: 20.0),
buildStarButton(),
new SizedBox(height: 20.0),
buildShareButton()