can't load the image using the filepicker in flutter

final PlatformFile image; final double size;

decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.cover, image: AssetImage(image.path!), ),


you need to used FileImage instead of AssetImage

            decoration: new BoxDecoration(
                color: Colors.transparent,
                image: new DecorationImage(
                  image: new FileImage(File(image.path)),
                  fit: BoxFit.cover,
                ),
        
              ),