Flutter 底部的RenderFlex溢出418像素

Flutter 底部的RenderFlex溢出418像素,flutter,animation,widget,Flutter,Animation,Widget,在此之前,所有内容都在容器中,并没有问题,但动画中出现了一个错误。谁能帮忙?) 返回AnimatedContainer( 曲线:Curves.easeincrc, 持续时间:持续时间(毫秒:200), 高度:_heightWidget, 装饰:isTaped ?盒子装饰( 边界:边界( 底部:边界侧( 宽度:0.0,颜色:color.fromRGBO(1311341630.52)), ), ) :盒子装饰( 边界:边界( 底部:边界侧( 宽度:1.0,颜色:color.fromRGBO(1311

在此之前,所有内容都在容器中,并没有问题,但动画中出现了一个错误。谁能帮忙?)

返回AnimatedContainer(
曲线:Curves.easeincrc,
持续时间:持续时间(毫秒:200),
高度:_heightWidget,
装饰:isTaped
?盒子装饰(
边界:边界(
底部:边界侧(
宽度:0.0,颜色:color.fromRGBO(1311341630.52)),
),
)
:盒子装饰(
边界:边界(
底部:边界侧(
宽度:1.0,颜色:color.fromRGBO(1311341630.52)),
),
),
儿童:扩大(
子:列(
儿童:[
划船(
儿童:[
容器(
身高:43.0,
宽度:60.0,
颜色:widget.dateBackgroundColor!=null
?widget.dateBackgroundColor
:颜色。绿色,
儿童:中心(
子:材质按钮(
已按下:(){
_pageController.previousPage(
持续时间:widget.pageChangeDuration!=null
?widget.pageChangeDuration
:持续时间(微秒:500),
曲线:Curves.easeIn,
);
},
子:图标(
widget.backardicon==null
?图标。返回箭头
:widget.backardicon,
颜色:颜色,黑色,
),
),
),
),
扩大(
子:容器(
身高:43.0,
颜色:widget.dateBackgroundColor!=null
?widget.dateBackgroundColor
:颜色。红色,
孩子:填充(
填充:仅限边缘设置(顶部:0.0,底部:0.0),
儿童:中心(
孩子:排(
mainAxisAlignment:mainAxisAlignment.center,
儿童:[
手势检测器(
onTap:(){
设置状态(){
isTaped=!isTaped;
伊斯塔普
?_heightWidget=464.0
:_heightWidget=44.0;
});
},
孩子:排(
儿童:[
Image.asset('assets/icons/calendar.png'),
大小盒子(
宽度:10.0,
),
正文(
checkDateToday(日期格式(
widget.displayDateFormat==null
?widget.displayDateFormat
:“年月日”)
.格式(_selectedDate)),
样式:widget.dateStyle!=null
?widget.dateStyle
:TextStyle(
颜色:颜色,黑色,
字体大小:14.0,
fontWeight:fontWeight.w100,
),
),
],
)),
],
)),
),
),
),
容器(
身高:43.0,
宽度:60.0,
颜色:widget.dateBackgroundColor!=null
?widget.dateBackgroundColor
:颜色。红色,
儿童:中心(
子:材质按钮(
已按下:(){
_pageController.nextPage(
持续时间:widget.pageChangeDuration!=null
?widget.pageChangeDuration
:持续时间(毫秒:700),
曲线:Curves.easeIn,
);
},
子:图标(
widget.forwardIcon==null
?图标。向前箭头
:widget.forwardIcon,
颜色:颜色,黑色,
),
),
),
),
],
),
容器(
装饰:盒子装饰(
边界:isTaped
?边界(
顶部:边界侧(
宽度:1.0,
颜色:color.fromRGBO(1311341630.52)),
return AnimatedContainer(
          curve: Curves.easeInCirc,
          duration: Duration(milliseconds: 200),
          height: _heightWidget,
          decoration: isTaped
              ? BoxDecoration(
                  border: Border(
                    bottom: BorderSide(
                        width: 0.0, color: Color.fromRGBO(131, 134, 163, 0.52)),
                  ),
                )
              : BoxDecoration(
                  border: Border(
                    bottom: BorderSide(
                        width: 1.0, color: Color.fromRGBO(131, 134, 163, 0.52)),
                  ),
                ),
          child: Expanded(
            child: Column(
              children: <Widget>[
                Row(
                  children: <Widget>[
                    Container(
                      height: 43.0,
                      width: 60.0,
                      color: widget.dateBackgroundColor != null
                          ? widget.dateBackgroundColor
                          : Colors.green,
                      child: Center(
                        child: MaterialButton(
                          onPressed: () {
                            _pageController.previousPage(
                              duration: widget.pageChangeDuration != null
                                  ? widget.pageChangeDuration
                                  : Duration(microseconds: 500),
                              curve: Curves.easeIn,
                            );
                          },
                          child: Icon(
                            widget.backwardIcon == null
                                ? Icons.arrow_back
                                : widget.backwardIcon,
                            color: Colors.black,
                          ),
                        ),
                      ),
                    ),
                    Expanded(
                      child: Container(
                        height: 43.0,
                        color: widget.dateBackgroundColor != null
                            ? widget.dateBackgroundColor
                            : Colors.red,
                        child: Padding(
                          padding: EdgeInsets.only(top: 0.0, bottom: 0.0),
                          child: Center(
                              child: Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            children: <Widget>[
                              GestureDetector(
                                  onTap: () {
                                    setState(() {
                                      isTaped = !isTaped;
                                      isTaped
                                          ? _heightWidget = 464.0
                                          : _heightWidget = 44.0;
                                    });
                                  },
                                  child: Row(
                                    children: <Widget>[
                                      Image.asset('assets/icons/calendar.png'),
                                      SizedBox(
                                        width: 10.0,
                                      ),
                                      Text(
                                        checkDateToday(DateFormat(
                                                widget.displayDateFormat == null
                                                    ? widget.displayDateFormat
                                                    : "dd.MM.yyyy")
                                            .format(_selectedDate)),
                                        style: widget.dateStyle != null
                                            ? widget.dateStyle
                                            : TextStyle(
                                                color: Colors.black,
                                                fontSize: 14.0,
                                                fontWeight: FontWeight.w100,
                                              ),
                                      ),
                                    ],
                                  )),
                            ],
                          )),
                        ),
                      ),
                    ),
                    Container(
                      height: 43.0,
                      width: 60.0,
                      color: widget.dateBackgroundColor != null
                          ? widget.dateBackgroundColor
                          : Colors.red,
                      child: Center(
                        child: MaterialButton(
                          onPressed: () {
                            _pageController.nextPage(
                              duration: widget.pageChangeDuration != null
                                  ? widget.pageChangeDuration
                                  : Duration(milliseconds: 700),
                              curve: Curves.easeIn,
                            );
                          },
                          child: Icon(
                            widget.forwardIcon == null
                                ? Icons.arrow_forward
                                : widget.forwardIcon,
                            color: Colors.black,
                          ),
                        ),
                      ),
                    ),
                  ],
                ),
                Container(
                    decoration: BoxDecoration(
                      border: isTaped
                          ? Border(
                              top: BorderSide(
                                  width: 1.0,
                                  color: Color.fromRGBO(131, 134, 163, 0.52)),
                            )
                          : null,
                    ),
                    padding: EdgeInsets.only(left: 0, right: 0),
                    child: isTaped
                        ? Column(
                            children: <Widget>[
                              SizedBox(height: 12.0),
                              Container(
                                child: SizedBox(
                                    height: 21.0,
                                    child: GridView.count(
                                      crossAxisCount: 7,
                                      primary: false,
                                      children: weekDaysOnTop,
                                    )),
                              ),
                              Row(
                                children: <Widget>[
                                  Container(
                                      margin: EdgeInsets.only(
                                          left: 25, top: 10, bottom: 0),
                                      child: Text(
                                        _currentMonth,
                                        style: TextStyle(
                                          color: Color.fromRGBO(83, 83, 83, 1),
                                          fontWeight: FontWeight.bold,
                                          fontSize: 24.0,
                                        ),
                                      )),
                                ],
                              ),
                              Container(
                                child: _calendarCarousel,
                              ),
                              Row(
                                children: <Widget>[
                                  Container(
                                      margin: EdgeInsets.only(
                                          left: 25, top: 10, bottom: 0),
                                      child: Text(
                                        _nextMonth,
                                        style: TextStyle(
                                          color: Color.fromRGBO(83, 83, 83, 1),
                                          fontWeight: FontWeight.bold,
                                          fontSize: 24.0,
                                        ),
                                      )),
                                ],
                              ),
                            ],
                          )
                        : null),
                Expanded(
                    child: PageView.builder(
                        controller: _pageController,
                        scrollDirection: Axis.horizontal,
                        itemCount: _totalPages,
                        onPageChanged: (direction) => _onPageChange(direction),
                        itemBuilder: (context, index) {
                          return _buildPage(index);
                        })),
              ],
            ),
          ),
        );