我正在尝试将背景图像添加到我的主题数据中,但我无法管理在何处添加它,我的代码如下所示。请帮忙。谢谢!
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(),
);
}
}