🔒 Closed Flutter no data sa snap po

Status
Not open for further replies.

chaosmaki

Honorary Poster
Flutter: wala pokong data na nakukuha sa snap po . pero meron pong laman yung nasa firebase database kopo.
310512183_8106647686075496_4665064179486338800_n.webp
 
You have to specify the ID of the child node. e.g. -NDvouLavsiLv71v_gIt

Make it atomic as possible para mas madali i-track kung saang part may error. Then kapag sure ka na, pwede mo na gamitan ng method chaining.
try:
Code:
  final rtdbReference = FirebaseDatabase.instance.ref();
  final id = fAuth.currentUser!.uid;
 
  // Set mo yung address ng node.
  final nodeReference = rtdbReference.child('All Ride Requests/$id/addons');
 
  // Get mo directly yung address ng node para less query.
  final addonsSnapshot = await nodeReference.get();
  additional = addonsSnapshot.snapshot.value as double;
 
You have to specify the ID of the child node. e.g. -NDvouLavsiLv71v_gIt

Make it atomic as possible para mas madali i-track kung saang part may error. Then kapag sure ka na, pwede mo na gamitan ng method chaining.
try:
Code:
  final rtdbReference = FirebaseDatabase.instance.ref();
  final id = fAuth.currentUser!.uid;
 
  // Set mo yung address ng node.
  final nodeReference = rtdbReference.child('All Ride Requests/$id/addons');
 
  // Get mo directly yung address ng node para less query.
  final addonsSnapshot = await nodeReference.get();
  additional = addonsSnapshot.snapshot.value as double;
subukan kopo sir , update po kita salamat po sa pag tugon
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 665
    Views
  • 2
    Participants
Last reply from:
chaosmaki

Trending Topics

Online now

Members online
1,052
Guests online
934
Total visitors
1,986

Forum statistics

Threads
2,274,917
Posts
28,959,318
Members
1,233,485
Latest member
senpaikatzu_88
Back
Top