Unable to load asset: assetsimagessplash_1.png code example

Example 1: Unable to load asset: /storage/emulated/0/

// You are using the wrong Image constructor. 
// Use `[Image.file]` instead of [Image.asset]. 
// [Image.asset] load files packaged in the application (assets section of pubspec.yaml)
// and [ImagePicker] does not have access to them.

Example 2: flutter asset image not showing

flutter:  
  uses-material-design: true   
  assets:   
    - assets/

class _UserLoginState extends State {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        children: [
          Image(image: AssetImage("assets/christmas.jpeg"),
          fit: BoxFit.cover,
        ],
      )
    );
  }
}

Tags:

Misc Example