I am trying to add a background image to my themedata, but i cant manage where to add it, my code looks like this. Please help. Thank you!
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Q App',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primaryColor: Color(0xff145C9E),
scaffoldBackgroundColor: Color(0xff1F1F1F),
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
initialRoute: Home.id,
routes: {
Home.id: (context) => Home(),
Login.id: (context) => Login(),
SignUp.id: (context) => SignUp(),
RegisterAgree.id: (context) => RegisterAgree(),
HomeInApp.id: (context) => HomeInApp(),
},
//home: Home(),
);
}
}