Multiple lists in body #1624
Unanswered
LarsBocons
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Got the basic listview working with this code:
body: GetX<LokationListeCtrl>( builder: (ctrl) => ListView.separated( separatorBuilder: _separatorBuilder, itemCount: ctrl.lokationListe.length, itemBuilder: (BuildContext context, int index) { return _lokationTile(ctrl.lokationListe.elementAt(index)); }, ), ),
Ok great, so now I'll just add another list by wrapping the whole thing in a multiple child widget, but even before doing that, I'm already stuck trying to get the first list working:
body: Column( children: [ GetX<LokationListeCtrl>( builder: (ctrl) => ListView.separated( separatorBuilder: _separatorBuilder, itemCount: ctrl.lokationListe.length, itemBuilder: (BuildContext context, int index) { return _lokationTile(ctrl.lokationListe.elementAt(index)); }, ), ), ], ),
Here using a Column, but it applies to all widgets with multiple children. The itemBuilder code is simply newer executed.
It seems like a simple and usefull thing to be able to do - the question is HOW to have multiple list in body, the "GetX way" ?
Beta Was this translation helpful? Give feedback.
All reactions