title: flutter carousel slider with text
body: <pre><code>class my_page extends StatefulWidget {
    @override
    _my_pageState createState() =&gt; _my_pageState();
  }
  
  class _my_pageState extends State&lt;my_page&gt; {
  
   @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(title: Text('mypage'),),
        body: CarouselSlider(
          autoPlay: true,
          items:['assets/images/0.jpg','assets/images/1.jpg',
              'assets/images/2.jpg',
            'assets/images/3.jpg',
            'assets/images/4.jpg',
            'assets/images/5.jpg'].map((i){
            return Builder(
              builder:(BuildContext context){
               return Container(
  
                  width: MediaQuery.of(context).size.width,
                 child: GestureDetector(
                  child:Stack(
                    children: &lt;Widget&gt;[
                      Image.asset(i,fit: BoxFit.fill,),
                      Align(
                        alignment: Alignment.topCenter,
                          child: Text('foodname',style: TextStyle(fontSize: 30,color: Colors.white,fontWeight: FontWeight.bold),)
                      )
                    ],
                  ),
                   onTap: (){
                     Navigator.push(
                       context,
                       MaterialPageRoute(builder: (context) =&gt; HomePage()),
                     );
                   },
                 ),
                );
              }
            );
          }).toList()
        ),
      );
    }
  }
  </code></pre>
  
  <p>this is my code. I want to add text on each image. the text food name should be changed. Is there some way to do it ? It is in stack form and text needs to be on the image. for 1st image 'burger' for 2nd image 'pizza' and so on.</p>
  
  <p>please help me guys</p>