flutter cover bakcground with image code example
Example: howmake image bacground fit in flutter
class MyPage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: <Widget>[ Image( image: AssetImage("images/background.png"), width: MediaQuery.of(context).size.width, height: MediaQuery.of(context).size.height, fit: BoxFit.cover, ),// [Your content here] ], )); }}