Skip to content

Commit

Permalink
Update network path
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Dec 26, 2023
1 parent 4e634f4 commit ccbdf2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/lib/src/feature/shop/widget/category_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class _ProductCardImage extends StatelessWidget {
ImageProvider<Object> get _imageProvider =>
(!kIsWeb || Config.environment.isDevelopment
? AssetImage(product.thumbnail)
: NetworkImage('//${product.thumbnail}')) as ImageProvider<Object>;
: NetworkImage('/${product.thumbnail}')) as ImageProvider<Object>;

@override
Widget build(BuildContext context) => DecoratedBox(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/src/feature/shop/widget/product_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ class _ProductPhotosListViewState extends State<_ProductPhotosListView> {
ImageProvider<Object> _getImageProvider(String path) =>
(!kIsWeb || Config.environment.isDevelopment
? AssetImage(path)
: NetworkImage('//$inProgress')) as ImageProvider<Object>;
: NetworkImage('/$inProgress')) as ImageProvider<Object>;

@override
Widget build(BuildContext context) => ShaderMask(
Expand Down

0 comments on commit ccbdf2d

Please sign in to comment.