title: RenderRepaintBoundary object was given an infinite size during layout
body: <p>I get this error when I call the closescalenderevent page. I want to display the list I created and if I want to return to the previous page from the back button in the appbar, but I get this error. The screen is not displayed.</p>
  <p><a href="https://i.stack.imgur.com/dproG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dproG.png" alt="" /></a><br>
  I want to go to the closeseventcalendar page when i click on any day in this calendar and i want to go back to this page from the appbar but i get the error in the title and the page is not displayed.</p>
  <pre><code>import 'package:flutter/material.dart';
  import 'package:takvim_app/page/calendar.dart';
  import 'package:intl/intl.dart' show DateFormat;
  import 'package:takvim_app/events/Closespart.dart';
  import 'package:takvim_app/Widgets/DropDownmenu.dart';
  class CalanderEvent extends StatefulWidget{
    final tarih;
  
    CalanderEvent(this.tarih);
  
    @override
    _CalanderEventstate createState() =&gt; _CalanderEventstate();
  
  }
  
  class _CalanderEventstate extends State&lt;CalanderEvent&gt; {
    final List&lt;Closespart&gt; tripsList = [
      Closespart(
          &quot;Etkinlik başlığı&quot;, DateTime.now(), DateTime.now(), DateTime.now(),
          &quot;Merhaba benim adım name bugun bunu özet yapmak için yaptım ve uzun oldugu zaman aşşağıya inme duurumu olacak diye kontrol ediyorum corona gunlcerınde app geliştme keyfisi Hadi Allaha emanetsın kardeşim&quot;),
      Closespart(
          &quot;Etkinlik başlığı&quot;, DateTime.now(), DateTime.now(), DateTime.now(),
          &quot;Özet&quot;),
      Closespart(
          &quot;Etkinlik başlığı&quot;, DateTime.now(), DateTime.now(), DateTime.now(),
          &quot;Özet&quot;),
      Closespart(
          &quot;Etkinlik başlığı&quot;, DateTime.now(), DateTime.now(), DateTime.now(),
          &quot;Özet&quot;),
    ];
  
    @override
    Widget build(BuildContext context) {
      return Container(
        child: new ListView.builder(
            itemCount: tripsList.length,
            itemBuilder: (BuildContext context, int index) =&gt;
                buildCalendarevent(context, index)),
      );
    }
  
    @override
    Widget buildCalendarevent(BuildContext context, int index) {
      final trip = tripsList[index];
      String dropdown = &quot;One&quot;;
        return Scaffold(
          appBar: AppBar(
            title: Text(&quot;Detaylar&quot;),
            leading: IconButton(
                icon: Icon(Icons.arrow_back),
                onPressed: () {
                  Navigator.of(context).pop();
                  Navigator.push(
                      context,
                      MaterialPageRoute(builder: (context) =&gt; Calendar()));
                }),
          ),
          body: Container(
            child: Card(
              child: Padding(
                padding: const EdgeInsets.all(24.0),
                child: Column(
                  children: &lt;Widget&gt;[
                    Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,
                        children: &lt;Widget&gt;[
                          Text(
                            trip.title,
                            style: new TextStyle(fontSize: 30.0),
                          ),
                          Container(child: DropDown(index))
                        ]),
                    Padding(
                      padding: const EdgeInsets.only(top: 1.0, bottom: 16.0),
                      child: Row(children: &lt;Widget&gt;[
                        Text(
                          &quot;${DateFormat('dd/MM/yyyy')
                              .format(trip.Date)
                              .toString()} - ${DateFormat('HH:mm').format(
                              trip.startDate).toString()} - ${DateFormat(
                              'HH:mm')
                              .format(trip.endDate)
                              .toString()}&quot;,
                          style: new TextStyle(fontSize: 15),
                        ),
                        Spacer()
                      ]),
                    ),
                    Padding(
                      padding: const EdgeInsets.only(top: 16.0, bottom: 16.0),
                      child: Row(
                        children: &lt;Widget&gt;[
                          Expanded(
                            child: Text(trip.summary,
                                maxLines: 2, overflow: TextOverflow.ellipsis),
                          ),
                          SizedBox(
                            height: 15.0,
                          ),
                          //Spacer()
                        ],
                      ),
                    )
                  ],
                ),
              ),
            ),
          ),
        );
      }
    }
  </code></pre>