我正在Flutter上开发应用程序,并且我想使用FROM python:3
USER root
SHELL ["/bin/bash", "-c"]
RUN mkdir /code
WORKDIR /code
COPY requirements/base.txt /code/
COPY source/backend/ /code/
ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE=mydjangoapi.settings.base
RUN pip install -r base.txt && \
python manage.py makemigrations && \
python manage.py migrate
EXPOSE 8000
ENTRYPOINT ["/bin/bash", "-c", "gunicorn --bind 0.0.0.0:8000 mydjangoapi.wsgi"]
。但是,当试图让孩子利用空间时,按钮仅利用最小空间
ButtonBar
任何想法如何获得按钮以利用更多空间
答案 0 :(得分:0)
您可以使用ButtonTheme
属性编辑按钮大小
Raised buttons have a minimum size of 88.0 by 36.0 which can be overridden with ButtonTheme.
第二,
您可以尝试使用Expanded
小部件包装按钮
Padding(
padding: const EdgeInsets.all(8.0),
child: ButtonBar(
mainAxisSize: MainAxisSize.max,
alignment: MainAxisAlignment.center,
children: <Widget>[
Expanded(
child: RaisedButton(
child: Text('Save'),
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (context) => OtpPage()));
},
),
),
],
),
),