Answers for "flutter can not access images from assets and network"

1

image.network flutter not working

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /="android.permission.ACCESS_NETWORK_STATE" />>
Posted by: Guest on September-13-2020
0

flutter asset image not showing

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

class _UserLoginState extends State<UserLogin> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        children: <Widget>[
          Image(image: AssetImage("assets/christmas.jpeg"),
          fit: BoxFit.cover,
        ],
      )
    );
  }
}
Posted by: Guest on November-30-2020

Code answers related to "flutter can not access images from assets and network"

Browse Popular Code Answers by Language