flutter - 在颤动的灼热栏后面制作一个通知徽章
问题描述
我是颤振的初学者,我试图制作一个像样机一样的小部件:它包含一个搜索栏和通知徽章,在创建代码后我在调试器中遇到错误
代码 :
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
解决方案
推荐阅读
- windows - 如何在批处理脚本中启动自动响应提示的命令
- facebook - 接受 Facebook 系统用户的非歧视政策
- cvxpy - 目标不是 DCP。它的下列子表达式不是
- node.js - AWS Lambda | 从 S3 读取多个文件 | 创建组合 JSON | 面临性能问题
- javascript - 如何从包含日期范围的字符串中提取年份 [Typescript/Angular]
- swift - 如何在 iOS 13 上共享文本和 URL 到提醒事项
- excel - Excel 多级数组公式与部分字符串匹配以求和结果单元格
- mongodb - 基于ObjectID的Mongodb Aggregation中的查询问题
- reactjs - React 函数的返回类型是什么
- ios - 提交到 AppStore Connect 时不支持 iOS 13