I want to create a custom back ground image for every scaffold created how can i achieve it? I want to use it as theme with image
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
scaffoldBackgroundColor: const Color(0xFF696969),
),
home: const MainScreen(),
);
}
}```
when call scaffold i want image back ground for every scaffold made which is included in theme .How can I achieve this
You should customize your scaffold in which it can always has an image as a background and a child to represent above that image.
try
and the call
result