在颤动时在 sear bar 后面制作一个通知徽章

问题描述

我是 Flutter 的初学者,我正在尝试制作一个mockup 中的小部件:它包含一个搜索栏和通知标志,在创建代码后,我在调试器中出现错误

代码

Row(
        crossAxisAlignment: CrossAxisAlignment.start,children: [
          Container(
            child: TextField(
              decoration: Inputdecoration(
                prefixIcon: Icon(Icons.search_rounded),fillColor: Colors.white,),IconButton(
            icon: Icon(Icons.notifications),onpressed: () {},],

错误

Null check operator used on a null value
The relevant error-causing widget was
Column
lib\screens\homescreen.dart:10

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)