Make background opaque 44/28144/1
authorScott Murray <scott.murray@konsulko.com>
Mon, 21 Nov 2022 05:51:04 +0000 (00:51 -0500)
committerScott Murray <scott.murray@konsulko.com>
Mon, 21 Nov 2022 05:53:22 +0000 (05:53 +0000)
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 <scott.murray@konsulko.com>
Change-Id: Ib20126720c75b9d958988725de76a9a5244bd4e6

lib/HomePage.dart

index c583fbf..6487ef5 100644 (file)
@@ -35,7 +35,7 @@ class _HomePageState extends ConsumerState<HomePage> {
 
 
     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<HomePage> {
                     width: MediaQuery.of(context).size.width,
                     height: MediaQuery.of(context).size.height,
                     child: Container(
-                      color: Colors.black87,
+                      color: Colors.black,
                     ),
                   ),