How can I avoid the camera position while building a screen? My Logo is hiding behind the camera.
This is what I’ve tried:
Scaffold(
appBar: PreferredSize(
preferredSize: const Size(double.infinity, 100),
child: AppBar(
title: Image.asset(
Constants.kLogoPath,
height: 40,
),
centerTitle: true,
actions: [
TextButton(onPressed: () {}, child: const Text("Skip"))
],
)));
2
Answers
I only faced this problem while using an emulator. But while using real devices this problem is fixed automatically.
use
SafeArea
widget to avoid camera