0
Good morning, all right, guys? I would like to add a hyperlink in the "privacy policy" section, and I’m not getting it. Is it possible to do this? If anyone can help me, I’d appreciate it.
import 'package:flutter/material.dart';
class GetCheckValue extends StatefulWidget {
@override
GetCheckValueState createState() {
return new GetCheckValueState();
}
}
class GetCheckValueState extends State<GetCheckValue> {
bool _isChecked = false;
String _currText = '';
List<String> text = [
"Declaro que li e aceito os termos da Política de Privacidade."
];
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Expanded(
child: Column(
children: text
.map((t) => CheckboxListTile(
title: Text(
t,
style: TextStyle(
color: Colors.white,
fontSize: 17.0,
),
),
value: _isChecked,
onChanged: (val) {
setState(() {
_isChecked = val;
if (val == true) {
_currText = t;
}
});
},
activeColor: Colors.lightBlueAccent,
checkColor: Colors.white,
))
.toList(),
),
),
],
);
}
}
Thank you very much! That way I managed to solve. Some things in the flutter are still obscure. It helped a lot!
– SecchiZ
Nothing, if it helped, could mark the answer as correct. : D
– Julio Henrique Bitencourt
@Secchiz marks the answer as correct there buddy! Help the reputation of those who help you!
– Mateus