【问题标题】:there is a top and bottom gap有一个顶部和底部的差距
【发布时间】:2022-12-01 01:22:46
【问题描述】:

有一个顶部和底部的间隙,我如何扩大或删除它?

下面是我的代码,请指教,谢谢

    class Introduction extends StatefulWidget {
  const Introduction({super.key});

  @override
  State<Introduction> createState() => _IntroductionState();
}

class _IntroductionState extends State<Introduction> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Column(children: [
      Expanded(
          child: Container(
        color: Color.fromARGB(255, 255, 255, 255),
        child: const Center(
            child: Image(
                height: 3000,
                width: 1000,
                image: AssetImage("lib/images/instruction.png"))),
      ))
    ]));
  }
}  

【问题讨论】:

    标签: flutter dart


    【解决方案1】:

    删除您的Expanded Widget 即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-15
      • 1970-01-01
      • 1970-01-01
      • 2020-12-05
      • 2021-04-14
      • 1970-01-01
      • 2014-06-05
      相关资源
      最近更新 更多