import 'package:flutter/material.dart';
bool jov = false;
class boox extends StatelessWidget {
const boox({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
drawer: Drawer(),
body: Container(
child: Column(children: [
Row(
children: [
Text("jordn"),
Checkbox(
value: jov,
onChanged: (String val) {
setstate(() {
jov = val;
});
})
],
),
Row(
children: [Text("data")],
)
]),
),
);
}
}
The setstate
cannot appear on onchanged and cant take it
I am difintion the variables and the problem still appear
and try to write the code and still appear this problem if any can fix him to me or no way