【问题标题】:How to remove padding under logo on flutter 3 [closed]如何在颤振3上删除徽标下的填充[关闭]
【发布时间】:2022-09-28 10:03:55
【问题描述】:

小部件 _scheduleViewAllBody(ScheduleAll 数据) { var viewAll = RectGetter( 键:列表视图键, 孩子:ListView.builder( 控制器:_scrollController, itemCount:data.data.length, itemBuilder:(上下文,索引){ _keys[index] = RectGetter.createGlobalKey();

      String _month = DateTime.now().month.toString();
      if (DateTime.now().month < 10) {
        _month = \'0\' + DateTime.now().month.toString();
      }

      String _date = DateTime.now().day.toString();
      if (DateTime.now().day < 10) {
        _date = \'0\' + DateTime.now().day.toString();
      }

      if (_currentDate == null) {
        if (data.data[index].rawDate ==
            DateTime.now().year.toString() + \'-\' + _month + \'-\' + _date) {
          _currentDate = index;
        }
      }

      print(
          \'${DateTime.now().year.toString() + \'-\' + DateTime.now().month.toString() + \'-\' + DateTime.now().day.toString()} => ${data.data[index].rawDate}\');
  • 请以文本形式发布代码。

标签: flutter


【解决方案1】:

您可以从您的徽标中在style 上提供padding,它会减少一些填充。例如 :

style: OutlinedButton.styleFrom(
  side: BorderSide(
    color: Color(0xFF44A5FF),
  ),
  padding: EdgeInsets.zero,
),

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-01
    • 2018-02-04
    相关资源
    最近更新 更多