Basically, I'm trying for fun to write a launcher using Flutter, and one thing I'm stuck on is the home screen. I'm trying to make it so that you can see through the app and through to the wallpaper. I changed my AndroidManifest.xml
like so:
<activity android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Wallpaper.NoTitleBar" <!-- I changed this line -->
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
and put this in my main.dart
:
return new MaterialApp(
title: 'Launcher',
theme: new ThemeData(
scaffoldBackgroundColor: Colors.transparent, // <-- this line
),
home: new HomeScreen(),
);
but it still doesn't work. What am I missing?