Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return Column(
- children: <Widget>[
- SizedBox(height: 10,),
- new Container(
- padding: EdgeInsets.symmetric(horizontal: 5),
- height: MediaQuery.of(context).size.height * 0.05,
- color: Colors.white,
- child: ListView.builder(
- scrollDirection: Axis.horizontal,
- shrinkWrap: true,
- itemCount: dataStep.length,
- itemBuilder: (BuildContext context, int index2) {
- if(index2%3 == 0){
- return Row(
- children: <Widget>[
- Text(" // "),
- Container(
- child: Text("Index : $index2"),
- ),
- ],
- );
- } else {
- return Row(
- children: <Widget>[
- Text(" \n || \n "),
- Container(
- child: Text(dataStep[index2].toString(),),
- ),
- ],
- );
- }
- },
- ),
- ),
- ],
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement