According to Documentation here. SafeArea should keep the content away from the notch in iPhone X and similar devices but its not working on my pixel3 XL virtual device (I cannot test it on Physical android device as my phone has a pop up camera). Is this feature exclusively for IOS ? Is there any other way to keep my content away from the notch irrespective of the OS and notch dimensions ?
Here's my Code.
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
title: "SafeArea Demo",
theme: ThemeData(fontFamily: 'Roboto'),
home: Scaffold(
body: Home(),
),
),
);
}
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Stack(
fit: StackFit.expand,
children: [
setBackGround(),
SafeArea(
child: Text(
"Pramod Pardeshi",
style: TextStyle(color: Color(0xFFFEFEFE), fontSize: 25),
textScaleFactor: 1.5,
),
),
//setGrid(),
],
);
}
Here's how it look.