• Latest
  • Hot
  • Ask
  • Full Apps
  • Ui
  • Packages
Ask September 27,2021

An Error occurs when getting list data from another class in Flutter

We just refer the 'group' reference and after that we created an initial function for create an object that this reference refers. Here is our code snippet:

Class className{Group group,List<Group> membersList; void initializeData(){group = new Group(args);membersList.add(group}}

We call it from ListTile. Here is the callback scope:

ListTile{leading:className.membersList[index].name}

We got RangeError (index): Invalid value: Valid range value is empty : 0


Twitter Facebook Reddit Hacker News LinkedIn Email

Most Viewed

Netflix UI Clone Build with Flutter and BloC

GitJournal - Markdown Notes Build with Fluter

How to debug multiple widgets used the same GlobalKey

Sign in up takes so long time to load from firebase

Featured Articles

Catagories

  • Ask63292
  • Full Apps40
  • Ui5
  • Packages2
  • Game2
  • Template0
  • flutter
  • flutter-layout
  • flutter-dependencies
  • flutter-web
  • svg
  • gesturedetector
  • sharedpreferences
  • shared
  • preference
  • pre
  • cocoapods
  • apple-m1
  • pod-install
  • firebase
  • dart
  • firebase-in-app-messaging
  • android
  • release-builds
  • flutter-plugin
  • flutter-intl
  • firebase-cloud-messaging
  • bloc
  • listview
  • void
  • visual-studio-code
  • audio
  • mobile
  • just-audio
  • file-upload
  • localization
  • ios
  • onesignal
  • events
  • event-handling
  • preventdefault
  • retrofit
  • google-cloud-firestore
  • async-await
  • future
  • widget-test-flutter
  • youtube
  • orientation
  • flutterwebviewplugin
  • sdk
  • list
  • dictionary
  • scroll
  • tabs
  • google-translator-toolkit
  • select
  • drop-down-menu
  • dropdown
  • dispose
  • android-studio
  • Privacy Policy
  • Submit Project
© Copyright © All rights reserved
Licensed under cc by-sa 3.0 with attribution required.

Catagories

  • Ask
  • Full Apps
  • Ui
  • Packages

Join our Newsletter