buildPageViewItem method

List<Widget> buildPageViewItem()

Implementation

List<Widget> buildPageViewItem(){
  List<Widget> widgets = [];
  for(Wizard wz in wizardData){
    Widget wg = Container(
      padding: EdgeInsets.all(35),
      alignment: Alignment.center,
      width: double.infinity, height: double.infinity,
      child: Wrap(
        children : <Widget>[
          Container(
            width: 280,
            child: Stack(
              children: <Widget>[
                Column(
                  mainAxisSize: MainAxisSize.min,
                  children: <Widget>[
                    Padding(
                      padding: EdgeInsets.all(35),
                      child: Image.asset(Img.get(wz.image), width: 150, height: 150),
                    ),
                    Text(wz.title, style: MyText.medium(context).copyWith(color: MyColors.grey_80, fontWeight: FontWeight.bold)),
                    Container(
                      margin: EdgeInsets.symmetric(vertical: 10, horizontal: 25),
                      child: Text(wz.brief, textAlign : TextAlign.center, style: MyText.subhead(context)!.copyWith(
                          color: MyColors.grey_60
                      )),
                    ),
                  ],
                )
              ],
            )
          )
        ],
      ),
    );
    widgets.add(wg);
  }
  return widgets;
}