Please help me, how can I apply a gradient background to whole project with MaterialApp class instead of creating Container or Scaffold class? Below are my initiate codes at main.dart.
Thank you!
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Testing App',
theme: new ThemeData(
primaryColor: Color(0xffD67219),
fontFamily: 'Poppins',
),
home: LoginPage(),
);
}
}
Containerto show your gradient