how to changes backgorund to image
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flut',
home: Scaffold(
appBar: AppBar(
title: Text("login Page"),
),
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/srg.jpg"),
fit: BoxFit.contain,
))),
));
}
}