1. 升级依赖版本
2. 解决运行项目警告日志问题 3. 优化代码
This commit is contained in:
@@ -24,7 +24,7 @@ class AppNetworkImage extends StatelessWidget {
|
||||
width: width,
|
||||
height: height,
|
||||
fit: fit,
|
||||
placeholder: (_, __) => ColoredBox(
|
||||
placeholder: (_, _) => ColoredBox(
|
||||
color: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
child: const Center(
|
||||
child: SizedBox.square(
|
||||
@@ -33,7 +33,7 @@ class AppNetworkImage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
errorWidget: (_, __, ___) => ColoredBox(
|
||||
errorWidget: (_, _, _) => ColoredBox(
|
||||
color: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
child: Icon(
|
||||
Icons.image_not_supported_outlined,
|
||||
|
||||
@@ -61,7 +61,7 @@ class _AppRefreshListState<T> extends State<AppRefreshList<T>> {
|
||||
: ListView.separated(
|
||||
padding: widget.padding,
|
||||
itemCount: widget.items.length,
|
||||
separatorBuilder: (_, __) =>
|
||||
separatorBuilder: (_, _) =>
|
||||
widget.separator ?? const SizedBox(height: 8),
|
||||
itemBuilder: (context, index) {
|
||||
return widget.itemBuilder(context, widget.items[index], index);
|
||||
|
||||
Reference in New Issue
Block a user