i'm just learning flutter, and i'm find problem. i can't retrive data from firebase, previously I could retrieve data with the same code but now I can't. i found I found an error as listed below.
and how did that happen? whereas before that it wasn't. I hope someone will help me
this is my code
``` StreamBuilder(
stream: dbRef.child("Data").onValue,
builder: (context, snapshot) {
if (snapshot.hasData &&
!snapshot.hasError &&
snapshot.data.snapshot.value != null) {
return Column(
children: <Widget>[
Container(
height: size.height * 1,
child: Stack(
children: <Widget>[
Positioned(
height: 40,
bottom: 520,
left: 0,
right: 0,
child: Container(
margin: EdgeInsets.symmetric(
horizontal: kDefaultPadding),
padding: EdgeInsets.symmetric(
horizontal: kDefaultPadding),
height: 10,
decoration: BoxDecoration(
color: Colors.cyan,
borderRadius: BorderRadius.circular(15),
boxShadow: [
BoxShadow(
offset: Offset(0, 10),
blurRadius: 50,
color: kPrimaryColor.withOpacity(0.5),
),
],
),
child: Center(
child: Text("PLANT MOISTURE CONTROLLER",
style: TextStyle(fontSize: 18)),
),
)),],))],)}}) ```
this is the error:
question from:
https://stackoverflow.com/questions/65861202/streambuildereventdirty-state-streambuilderbasestateevent-asyncsnapshot 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…