0

我希望所有项目都在底部,如果容器很大,应该在顶部添加填充。我想要这样的网格https://ibb.co/zrRQ8Hz但我能够实现这个https://ibb.co/2820csg

我写的代码如下:

 Container(
                                                                              margin:
                                      new EdgeInsets.all(
                                          1.0),

                                      alignment:
                                      Alignment.center,

                                      decoration: BoxDecoration(
                                        borderRadius:
                                        BorderRadius
                                            .circular(5),
                                        border: Border.all(
                                            color: Color(0XFFc3c3c3)),
                                      ),
                                      child: Column(
                                        children: [ SizedBox(
                                          height: 5,
                                        ),
                                          RichText(
                                              text: TextSpan(children: [
                                                TextSpan(
                                                    text: "\u{20B9} ",
                                                                                                        ),
                                                TextSpan(
                                                    text: “100”,
                                                                                                    ),
                                              ])),
                                          SizedBox(
                                            height: 5,
                                          ),
                                          Container(
                                              width: double
                                                  .infinity,
                                              color: Color(0XFFc3c3c3)),
                                              child: Center(
                                                child: Text(
                                                  "Most Value",
                                                  style: TextStyle(
                                                      color: Colors
                                                          .white),
                                                ),
                                              )), SizedBox(
                                            height: 5,
                                          ),
                                        ],
                                      ),
                                    )
4

0 回答 0