我在我的应用程序中使用datetimepicker,但小屏幕无法正常工作

时间:2019-06-15 04:47:09

标签: flutter

  

RenderFlex在底部溢出了40个像素。 I /颤振(3890):   溢出的RenderFlex的方向为Axis.vertical。

     

I / flutter(3890):正在溢出的RenderFlex的边缘具有   在呈现中用黄色和

标记
final dateField =
         DateTimePickerFormField(
           format: dateFormat,
           style: style,
          onChanged: (value) {
            setState(() {
              userData.expirydate = value.toString();
            });
          },
          decoration: InputDecoration(
              prefixIcon: Padding(
                padding: EdgeInsets.only(left: 5.0),
                child: Icon(
                  Icons.calendar_today,
                  color: Colors.grey,
                ),
              ),
              contentPadding: EdgeInsets.fromLTRB(20.0, 15.0, 20.0, 15.0),
              hintText: "Expiry Date",
              border:
                  OutlineInputBorder(borderRadius: BorderRadius.circular(32.0))),
        );


     body: Builder(
            builder: (context) => SingleChildScrollView(
                  scrollDirection: Axis.vertical,
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    mainAxisAlignment: MainAxisAlignment.start,
                    children: <Widget>[
                      Container(
                        child: Padding(
                          padding: const EdgeInsets.only(top: 30.0, bottom: 70.0),
                          child: ListView(
                            shrinkWrap: false,
                            padding: const EdgeInsets.all(20.0),
                            children: <Widget>[dateField,...]...

0 个答案:

没有答案