试图创建一个底部晶圆厂,位于屏幕的最底部。然而,有额外的填充被添加到按钮下方的大型iPhone设备。我如何删除它?
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: Scaffold(
floatingActionButtonLocation:
FloatingActionButtonLocation.centerDocked,
floatingActionButton: Padding(
padding: EdgeInsets.zero,
child: Container(height: 56, color: Colors.red),
),
),
),
);
1条答案
按热度按时间xxhby3vn1#
可以在main函数中添加此行
像这样: