Guest User

Untitled

a guest
Aug 25th, 2019
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return Column(
  2. children: <Widget>[
  3. SizedBox(height: 10,),
  4. new Container(
  5. padding: EdgeInsets.symmetric(horizontal: 5),
  6. height: MediaQuery.of(context).size.height * 0.05,
  7. color: Colors.white,
  8. child: ListView.builder(
  9. scrollDirection: Axis.horizontal,
  10. shrinkWrap: true,
  11. itemCount: dataStep.length,
  12. itemBuilder: (BuildContext context, int index2) {
  13. if(index2%3 == 0){
  14. return Row(
  15. children: <Widget>[
  16. Text(" // "),
  17. Container(
  18. child: Text("Index : $index2"),
  19. ),
  20. ],
  21. );
  22. } else {
  23. return Row(
  24. children: <Widget>[
  25. Text(" \n || \n "),
  26. Container(
  27. child: Text(dataStep[index2].toString(),),
  28. ),
  29. ],
  30. );
  31. }
  32.  
  33. },
  34. ),
  35. ),
  36. ],
  37. );
RAW Paste Data