Visibility(
visible:_visible,
child: Container(
child: Column(
children: [
Html(
data: ('<ul><li>ТЕКСТ</li><li>ТЕКСТ</li></ul>'),
style: {
'ul':Style(
),
'li':Style(
color: Colors.black,
)
},
),
],
),
),
)
void _toggle() {
setState(() {
_visible = !_visible;
});
}
void showHide(int i){
setState((){
showQty[i]=!showQty[i];
});
}
Visibility(
visible:showQty[position],
child: Container(
child: Column(
children: [
Html(
data: ('${article[position].description}'),
style: {
'ul':Style(
),
'li':Style(
color: Colors.black,
)
},
),
],
),
),
),
@override
void initState() {
for(int i=0;i<10;i++){
showQty.add(false);
}
super.initState();
}