From: Scott Murray Date: Mon, 21 Nov 2022 05:51:04 +0000 (-0500) Subject: Make background opaque X-Git-Tag: 12.1.13~6 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=34827b8fdeb3a454cc684a6e8ce4a320ce69517e;p=apps%2Fflutter-dashboard.git Make background opaque To work properly with the Flutter demo homescreen, which does not provide a separate black background surface behind applications like the Qt demo one does, ensure the top-level widgets have opaque backgrounds to prevent the homescreen from showing underneath. Bug-AGL: SPEC-4614 Signed-off-by: Scott Murray Change-Id: Ib20126720c75b9d958988725de76a9a5244bd4e6 --- diff --git a/lib/HomePage.dart b/lib/HomePage.dart index c583fbf..6487ef5 100644 --- a/lib/HomePage.dart +++ b/lib/HomePage.dart @@ -35,7 +35,7 @@ class _HomePageState extends ConsumerState { return Scaffold( - backgroundColor: Colors.black87, + backgroundColor: Colors.black, body: OrientationBuilder( builder: (context, orientation) { if (orientation == Orientation.landscape) { @@ -45,7 +45,7 @@ class _HomePageState extends ConsumerState { width: MediaQuery.of(context).size.width, height: MediaQuery.of(context).size.height, child: Container( - color: Colors.black87, + color: Colors.black, ), ),