Drawer is an app drawer for Android that works alongside whichever launcher you use. It sorts your apps into categories for you, so any app is a tap or two away, and it wears iOS's Liquid Glass look. Built with Flutter, inspired by Smart Launcher 6.
- 🗂️ Automatic categories: Communication, Internet, Games, Media, Utilities and Settings, sorted offline. New apps are sorted as they're installed.
- 🫧 Liquid Glass: bars, buttons, menus, sheets, dialogs and folders in iOS 27-style glass from liquid_glass_widgets, over a picture of your wallpaper.
- 👍 Move icons down: keeps the icons within reach of your thumb, as Smart Launcher does.
- 🧭 Category bar: along the bottom or at either side. Tap a category, swipe between pages, or drag the bar's lens along it to flip through them.
- 🔤 Search by index: a strip of letters shows every app under a letter, from all categories. With the bar at a side, you pull the strip out of the bar.
- 🔍 Search within reach: the search field sits right above the keyboard, and the results sit right above the field.
- 📁 Folders: glass folder icons that open right next to themselves.
- 🎨 Icon packs: standard (ADW-style) packs, and generator packs such as Icon Pack Studio.
- 🌗 Light, dark and Material You: Drawer follows your phone's light or dark setting and takes its colors from your wallpaper.
- 📥 Import from Smart Launcher: categories, folders, icon order and hidden apps from a Smart Launcher 6 backup.
- 💼 Work profile: work apps are listed with the rest, with their badge.
- 💾 Backups: export what you've set up to a file, and import it again.
| 🫧 Liquid Glass | 📁 Folder | 🔤 Index strip |
|---|---|---|
![]() |
![]() |
![]() |
| 📋 App's popup | ⋯ 3-dot menu |
|---|---|
![]() |
![]() |
| ⚙️ Settings | 🎨 Appearance |
|---|---|
![]() |
![]() |
-
Get Drawer onto your phone (Android 8.0 or later): download an APK from Releases on the phone and open it. Android asks you to allow installing apps from where you opened it. Pick the APK for your phone:
arm64-v8a: nearly every phone from the last several years;armeabi-v7a: older 32-bit phones;x86_64: emulators and some Chromebooks;universal: any of them, if you're not sure, though it's nearly three times as big.
You can also build the APK yourself (see Build), or install it over USB with
flutter install. -
Drawer isn't a launcher, so keep your home screen as it is. Put Drawer's icon in the dock, or, if your launcher can open an app with a gesture (a swipe up, say), set that gesture to open Drawer.
-
The first time Drawer opens, it:
- sorts your apps into categories (see Auto sorting);
- asks for a picture of your wallpaper, for the glass to blur and bend. Capture shows a screen with nothing but the wallpaper and keeps one frame of it, once Android has asked you to allow the capture. Choose a picture takes a screenshot of your home screen, or your wallpaper image, instead. Not now leaves it for later, in ⋯ › Settings › Appearance.
-
Coming from Smart Launcher? Make a backup in its settings. Then, in Drawer, go to ⋯ › Settings › Backup › Import from Smart Launcher and pick the
.slbkfile. Your categories, folders and icon order come over as they were. -
Open an app. 🎉
| To | Do this |
|---|---|
| Go to another category | Tap it in the bar, swipe sideways on the icons, or drag the bar's lens along it |
| Find an app | Tap 🔍 in the title bar, or touch a letter on the index strip |
| Do something with an app | Long press it: App info, Add to folder, Move to category, Hide, Uninstall |
| Move an app | Drag it onto a category in the bar. Hold it there a moment to open that category, then drop it where you want it. Drop it on another icon to take its place; in Custom order, hold it there and the others make room |
| Make a folder | Long press an app › Add to folder, or ⋯ › Add folder |
| Take an app out of a folder | Drag it out of the open folder, and drop it where it goes |
| Rename a category or change its icon | Long press it in the bar, or long press its name above the icons |
| Open the quick menu | Tap the category's name |
| Close Drawer | Pull it down, or press Back |
Pulling down to close is Gesture support in Settings (on by default). Closed, Drawer keeps running in the background, so it opens again at once. Hide from Recents (on by default) keeps it off the Recents screen once you leave it, just like a launcher's app page. Everything else is in ⋯: Add folder, Add category, sorting, Edit categories, Reorder apps, Hidden apps and Settings.
The bar holds every category, however many there are. It never scrolls: as you add categories, their slots get narrower and their icons smaller. ⋯ › Settings › Category bar position puts it along the bottom (the default) or at the left or right side, and Categories label puts each category's name under its icon.
- The open category sits on a pill. Opening another one lifts the pill off the bar as a lens of glass, which bends what's under it, and carries it across.
- Drag along the bar to carry the lens yourself. Each category opens as the lens comes over it, without letting go.
- The bar floats over the icons. Swipe between pages and the icons pass under it, showing through its glass. A long list goes on under the bar, so you can tell there's more, and at its end the last row rests just above the bar.
- At a side, the bar moves just as the one along the bottom does. It swells a little under your finger and leans after it, its lens stretches as it sets off and squashes as it lands, and a faint light follows your finger.
Move icons down (on by default) keeps icons out of the top fifth of the screen, where your thumb doesn't reach:
- A category that fits below that fifth sits at the bottom of the screen, with its title right above its icons.
- A longer one starts a fifth of the way down. Scroll, and the title and icons move up into that fifth together. Once the title reaches the top, it stays there and the icons scroll on under it.
- With it turned off, a category starts at the top of the page.
That's how Smart Launcher 6.6 does it, as read from its app and checked on a phone. Nothing is kept free on a screen that's on its side or no taller than 500 dp.
Stack apps from bottom (off by default) flips the grid instead: the first row is at the bottom and the rows fill upward. Columns (3 to 7, default 4) and Icon labels are in the same settings.
⋯ › Settings › Search apps by index (on by default) adds a strip of letters, showing only the letters that have apps. Touch it or slide along it, and Drawer shows every app under that letter, from all categories, with a bubble beside your finger showing the letter. The apps stay when you lift your finger. Back, ✕, a swipe sideways or a tap on a category takes you back. Accented letters are filed under their plain letter (É under E), and everything else, such as digits or Chinese names, goes under #.
With the bar along the bottom, the strip runs down the right of the icons. With the bar at a side, the strip is inside the bar, so the icons get the whole width:
- Put a finger anywhere on the bar and pull toward the icons. The lens comes out of the bar and draws out into the strip of letters.
- Without lifting your finger, slide to a letter. Its apps show at once.
- Let go. The apps stay, and the strip goes back into the bar. If you pull back onto the bar instead, still holding, the strip turns back into the lens, and letting go there opens the category under it.
A screen reader such as TalkBack can't hold a pull, so while one is on, the strip stays on screen beside the bar.
The first time Drawer runs, it puts every app into one of six broad categories: Communication, Internet, Games, Media, Utilities and Settings. It only creates the ones that get apps, so the bar starts short. It works offline, trying these in order (lib/categories.dart):
- well-known apps, matched by a word of their package name or label, the most specific word first (so YouTube Music goes to Music, not Media);
- the category the app declares to Android;
- telling words ("camera", "bank", "weather", …);
- Utilities, for anything left.
Each app first gets a narrow category (Social, Photography, Music, Finance and so on). While that category isn't in the bar, the app goes to a broader one that is:
- Social goes to Communication.
- Photography, Music, Entertainment and News & Reading go to Media.
- Shopping goes to Internet.
- Personalization and Wearables go to Settings.
- Anything else goes to Utilities.
Choose a built-in category under Add category to add a narrow one. Drawer offers to move in the apps that belong there, and sends new apps of that kind there from then on. A category you remove isn't brought back, and ⋯ › Reorder apps sorts everything again.
⋯ › Sorting orders the icons in a category: By name · By install time (newest first) · By usage (launches from Drawer) · By icon color · Custom. To take another icon's place, drag an icon onto it. If the category isn't in Custom order yet, Drawer asks first, then starts the custom order from what's on screen. In Custom order, hold the icon over another for a moment: the others slide apart, and a faint copy of it shows where it will go. Move on and the gap follows. Let go anywhere on the page, and it goes into the gap. This works in an open folder too, and on another category's page after you've held the icon over that category in the bar.
- To make a folder, long press an app, then choose Add to folder (a new folder or an existing one), or use ⋯ › Add folder. To put an app in, drag it onto the folder.
- Tap a folder to open it. As in Smart Launcher, it opens over its icon and leans toward the nearer edge of the screen. Tap its name to rename it, and drag inside it to reorder.
- To take an app out, drag it out of the open folder. The folder closes, and you drop the app where it goes: on the page to put it next to the folder (in Custom order, onto another icon to take its place), on a category in the bar to move it there, or on another folder.
- Long press a folder to rename it, move it to another category, or remove it. Its apps go back into the category.
- A folder's icon is a rounded square of Liquid Glass with its first four apps on it. Lots of glass folders on one page are heavy on older phones, so ⋯ › Settings › Appearance › Glass folders can put them on a plain tinted square instead.
⋯ › Settings › Appearance is laid out like iOS's Display & Brightness:
-
Light, Dark or Automatic, which follows the phone (the default).
-
Material You (on by default) tints the open category, buttons, switches and checkmarks with your phone's colors instead of iOS blue. On Android 12 and later that's the palette Android makes from your wallpaper. On older versions, it's a palette made from the wallpaper's main color.
-
Liquid Glass is a slider, as in iOS 27, from clear at the left to tinted at the right, with a sample of the glass over your wallpaper. The middle, where the thumb settles, is the package's iOS 27 glass as it comes.
-
Glass folders (see Folders).
-
Wallpaper: Android draws the wallpaper where the glass can't see it, and doesn't let apps read it. So, like Smart Launcher, Drawer keeps a picture of it, made with Capture or Choose a picture instead.
- Blur blurs that picture, and the slider under it sets how much.
- Dark Appearance Dims Wallpaper darkens the picture in dark mode.
- Ask when the wallpaper changes asks once, for each new wallpaper, whether to capture it.
Without a picture, the glass is only a tint and a rim, because there's nothing for it to blur.
-
Text on the wallpaper (category titles, icon labels and the status bar's icons) is white over dark parts of the picture and black over light ones, as on iOS's Home Screen.
-
Glass quality:
- Best is the full glass, which bends what's behind it like a lens.
- Balanced is a lighter shader over a blur.
- Fast is a blur and a tint, with no shader.
⋯ › Settings › Icon pack lists your installed icon packs, under a preview of five of your apps in the pack you've chosen. Drawer reads the packs the way Smart Launcher does (IconPacks.kt):
- Standard (ADW-style) packs, like most on the Play Store. Apps the pack doesn't cover are drawn on the pack's background, shrunk, masked and overlaid, if the pack provides those images.
- Generator packs such as Icon Pack Studio, which restyle each app's own icon.
If a pack can't give an icon, Drawer uses the app's own. Work apps keep their badge.
⋯ › Settings › Backup › Import from Smart Launcher takes a Smart Launcher 6 backup (a .slbk file, made in Smart Launcher's backup settings). Its categories, folders, icon order and hidden apps replace Drawer's, exactly as Smart Launcher showed them, and sorting becomes Custom. Its launch counts are added, so By usage is useful from the start.
- Apps the backup doesn't mention are sorted into the backup's categories.
- Apps in the backup that aren't installed keep their place, in case you install them again.
- Work profile apps come over too.
Pinned shortcuts, web apps and archived apps aren't imported yet, because Drawer doesn't list them.
- Android only, 8.0 or later.
- Drawer is an app you open, not a launcher. It doesn't replace your home screen, and your launcher decides how Drawer's window animates as it opens.
- Pinned shortcuts, web apps and archived apps aren't listed. Neither is a private space (Android 15), which Android only shows to the default launcher.
- The glass sees a picture of your wallpaper, not the wallpaper itself. A live wallpaper is a still frame behind the glass, and a new wallpaper has to be captured again (Drawer asks).
- The glass is heavy on older phones. On a Galaxy S10, a page of 40 glass folders scrolls at about a third of the frame rate of 40 plain ones. Turning Glass folders off helps, and so does Balanced quality, which ran better there than Fast. Making lots of small glass surfaces cheap is up to liquid_glass_widgets.
- Glass folders sliding to new places are heavier still, over a picture of the wallpaper: each moves on its own, so the page is drawn anew on every frame of the slide, where a scroll only moves it. On the emulator, 20 glass folders sliding at once took 46 ms a frame to draw (19 ms scrolling, 12 ms with plain folders). Over the real wallpaper the slide costs no more than a scroll.
- With gesture navigation, Android lets Drawer keep only 200 dp of a screen edge for the side bar, counted from the bottom. Above that, a swipe in from the edge is Back.
- Drawer is in English only so far, though its text is ready to be translated (see Translating).
- Import from Smart Launcher
- Icon packs
- Move icons down
- The category bar at a side, with the index strip inside it
- Translations
- Pinned shortcuts, web apps and archived apps
- Podcast and video apps that don't declare a category, such as AntennaPod and NewPipe, sorted into Media rather than Utilities
- Release builds: a signing key of its own, and APKs on Releases
Everything stays on your phone, in Drawer's private storage:
| What | Where |
|---|---|
| Categories, folders, icon order, hidden apps, launch counts and settings | drawer.json |
| The app list from last time, so Drawer shows it at once on start | apps.json |
| Icon colors, for By icon color | colors.json |
| The picture of your wallpaper, and its blurred copy | wallpaper_*.jpg, blur_*.png |
| App icons | Drawer's cache (icons/), made again if it's cleared |
| The report of a crash, until it's shown at the next start | last_crash.txt |
⋯ › Settings › Backup:
- Export backup saves a
Drawer-backup-<date>-<time>.jsonfile wherever you choose. It holds your categories, folders, icon order, hidden apps, usage counts and settings. It doesn't hold the wallpaper picture, which belongs to the phone it was taken on. - Import backup asks first, then replaces all of that with what's in the file. Apps the backup doesn't know are sorted into its categories. Apps it knows that aren't installed keep their place. A file that isn't a Drawer backup, or one from a newer Drawer, changes nothing.
To move to a new phone, export a backup on the old one and import it on the new one.
Install the new APK over the old one, and Android keeps Drawer's data. ⋯ › Settings › About shows the version you have, and CHANGELOG.md says what changed in each version. Drawer has no internet access, so it doesn't check for updates.
Android only updates an app with an APK signed with the same key. The APKs on Releases are signed with Drawer's release key. An APK you build yourself is signed with your computer's debug key instead (see Build), so it won't install over a release, and a release won't install over it ("App not installed"). APKs built on two computers have different debug keys too, unless you copy debug.keystore between them (~/.android/, or %USERPROFILE%\.android\ on Windows). To switch from one to the other:
- Export a backup.
- Uninstall Drawer.
- Install the new APK.
- Import the backup, and capture the wallpaper again.
Uninstall Drawer in Android's settings. That deletes its data, so export a backup first if you want to keep it. Drawer doesn't touch your launcher or home screen, so there's nothing else to undo.
Drawer has no account, no ads and no tracking, and it can't go online: it doesn't ask Android for internet access. Here's what it does ask for:
- To see your apps (every app with an icon), to list them, and your icon packs, to read them.
- To open Android's uninstall dialog, for Uninstall in an app's popup.
- To capture the screen, only when you tap Capture. Android asks you first and shows a notification while the capture runs. Drawer keeps one frame of the bare wallpaper, on the phone.
The links in ⋯ › Settings › About open in your browser. If Drawer crashes, it shows you the report at the next start so you can copy it if you like; it's never sent anywhere. Backups go only where you save them.
You need Flutter 3.47.8 or later and the Android SDK (Android Studio's works).
git clone https://github.com/EnderDragonEP/Drawer
cd Drawer
flutter pub get
flutter run # a debug build with hot reload, on a plugged-in phone or an emulatorThe glass shows on an emulator too. A debug build is much slower than a release one, so judge speed with flutter run --profile or --release.
On a computer:
flutter build apk --release --target-platform android-arm64That makes build/app/outputs/flutter-apk/app-release.apk for 64-bit ARM phones, which is nearly every recent phone. Without --target-platform, the APK carries the code for every kind of phone and is bigger.
A release build is signed with Drawer's release key when android/key.properties says where the key is and gives its passwords (storeFile, storePassword, keyAlias and keyPassword). Without that file, it's signed with your computer's debug key. Neither the key nor that file is ever committed.
For a release on GitHub, build an APK for each kind of phone, and a universal one:
flutter build apk --release --split-per-abi -P force-version-code-ignoring-abi=true
flutter build apk --releaseThe first makes app-arm64-v8a-release.apk, app-armeabi-v7a-release.apk and app-x86_64-release.apk, and the second makes the universal app-release.apk. With force-version-code-ignoring-abi, all four have the version code in pubspec.yaml, so an update installs over any of them.
On the phone itself, in Termux:
./build.sh # release APK, copied to /sdcard/Download/Drawer.apk
./build.sh --test # run the tests first; stop if one fails
./build.sh --install # open Android's installer on the new APK afterwardsbuild.sh uses the Flutter and Android toolchain that ~/build.sh --setup sets up.
The launcher icon is drawn by python3 tool/make_icon.py (with Pillow), which writes it into android/app/src/main/res. It's a 3×3 grid of rounded app tiles in rainbow order (the drawer, sorted by color) on a dark indigo gradient. It's an adaptive icon, with a monochrome layer for themed icons. Add --preview sheet.png to see it in several launcher shapes and sizes.
The banner at the top of this README is drawn by python3 tool/make_banner.py, into .asset/banner.webp. It's a page of the app's own widgets, tool/banner.dart (the name, what Drawer is, and a slice of the App page over an abstract wallpaper), so its glass is the real Liquid Glass, with the Liquid Glass slider at its clearest: the chips, the round buttons and the bar bend the wallpaper's lights under them, and the bar's lens is lifted. That glass only runs on a device, so the script builds the page as an app of its own beside Drawer, runs it on a running Android emulator, takes a picture of the screen and removes it again. It needs Pillow, Flutter with flutter pub get run, and adb. While it runs, it turns the screen on its side and changes its density, then puts both back, so use an emulator; a phone is only used when --serial names it. The text, the apps and the bar's icons are near the top of tool/banner.dart.
flutter testThe tests cover the auto sorter, the saved state, importing Smart Launcher backups, and the App page and Settings screens. test/l10n_test.dart checks that every piece of text is used and that the code holds no text of its own.
Code is formatted at 110 columns, apart from the generated lib/l10n/app_localizations*.dart. Plain dart format reflows everything at 80, so name the line length and the folders:
dart format -l 110 lib/ui lib/main.dart lib/store.dart lib/native.dart lib/appearance.dart lib/categories.dart lib/smart_launcher.dart lib/l10n/l10n.dart lib/l10n/labels.dart test integration_test test_driver toolMeasuring performance on a phone
flutter drive --profile --no-dds --keep-app-running --driver=test_driver/perf_driver.dart --target=integration_test/perf_test.dart
dart run tool/perf_report.dart [folder of an earlier run]- Keep
--keep-app-running. Without it,flutter driveuninstalls Drawer when the test ends, and its settings, categories and wallpaper picture go with it. - The test swipes between categories, opens the quick menu and the ⋯ menu, pulls the drawer part way down, opens an icon's popup, and drags the bar's lens and slides along the index strip. It then moves the bar to the right and swipes and drags again. Last, it scrolls and swipes a category of 40 folders, and moves one from the start to the end and back so that the others slide, with Glass folders on and off. It does all of this over the real wallpaper, then over a picture of one.
--dart-define=PERF_ONLY=sheet(say) runs one scenario on its own.--dart-define=PERF_GLASS=balanced(orbest,fast) uses that glass quality instead of the one in Settings.- It runs on a copy of the saved state (
perf/in the data folder), so the real one is left alone. It prints each scenario's name as it starts (perf: …). If the drawer leaves the screen (a drag read as a pull to close), no more frames come and the test waits forever; the last name printed shows where. - The profile build needs network access for its Dart VM service. On phones that block it for each app separately (LineageOS, say), allow network access in Drawer's app settings first.
- The report gives each scenario's build and raster times, janky frames, encode time, and the render passes and layers per frame. On a phone's GPU, each render pass reads and writes the whole screen, so fewer passes is what makes glass cheaper. An emulator shows the passes but not their cost, so compare passes, layers and encode time there. To compare a later run, copy
build/*.timeline*.jsonsomewhere first.
None of Drawer's text is in its code, so it can be translated without touching the code.
- The app's text is in
lib/l10n/app_en.arb: one entry for each piece of text, with a key ("cancel": "Cancel"). Entries starting with@are notes for translators where the English alone doesn't say what the text is for.{placeholders}mark where a value goes ("Add to {name}"), and plurals look like{count, plural, =1{1 item} other{{count} items}}. - A translation is a copy of that file beside it, named for its language (
app_de.arb,app_zh_TW.arb), with"@@locale"set to that language and the same keys. The notes don't need to be copied, and a key left out shows in English. The next build picks it up; nothing else has to change. - What Android itself shows (the app's name, the notification while the wallpaper is captured, a few file picker errors) is in
android/app/src/main/res/values/strings.xml. Its translation goes invalues-<language>/strings.xml.
Drawer uses the phone's language when there's a translation for it, and English otherwise. A built-in category is shown in the phone's language until you rename it.
lib/
main.dart starts it: the saved state, the glass theme, the wallpaper behind everything
store.dart all state (categories, folders, order, hidden apps, settings), saved to drawer.json
categories.dart the built-in categories, their icons, and the auto sorter
smart_launcher.dart applies a Smart Launcher backup: categories, folders, order, hidden apps
appearance.dart the appearance settings, the tint (Material You), themes and text colors
native.dart the channel to the Android side, and the in-memory icon cache
l10n/ the app's text: app_en.arb, tr (l10n.dart), names of the app's own things (labels.dart)
ui/
drawer_page.dart the App page: title bar, pages, the bar along the bottom, search, index strip
side_bar.dart the bar at a side, its lens, and the index strip pulled out of it
tiles.dart icons, folder icons, the grid
moving.dart how icons move: the springs, the gap made for one, a dropped icon's flight
folder_view.dart an open folder
popup.dart the long-press popup, and the glass of menus and folders
sheets.dart menus, sheets, dialogs, toasts, pickers and the quick menu
settings_page.dart Settings, Appearance, Icon pack and Edit categories
glass.dart where the app's settings meet liquid_glass_widgets
covering.dart tells the App page when something comes over it
android/app/src/main/kotlin/dev/ender/drawer/
MainActivity.kt the bridge to Dart, file pickers, the Back gesture edge, crash reports
Apps.kt lists apps in every profile, draws and caches icons, launches apps
IconPacks.kt reads icon packs
SmartLauncherBackup.kt reads the database out of a .slbk backup
WallpaperCapture.kt captures the wallpaper, and gets Android's colors for Material You
WallpaperPicture.kt keeps the picture of the wallpaper, and blurs a copy
test/ the tests (flutter test)
integration_test/ the performance run (with test_driver/ and tool/perf_report.dart)
tool/make_icon.py the launcher icon
tool/make_banner.py the banner at the top of this README, drawn from tool/banner.dart on an emulator
build.sh builds the APK on the phone, in Termux
THIRD_PARTY_NOTICES.md the open-source components in the APK, and their licenses
CHANGELOG.md what changed in each version
.asset/ the pictures in this README
.claude/skills/ liquid_glass_widgets' guide for coding agents, as it ships with the version in pubspec.lock
The interesting parts
- No plugins. The Android side is six Kotlin files behind method and event channels. The one package, liquid_glass_widgets, is pure Dart and shaders.
- All the glass is the package's. The title bar's buttons are
GlassIconButtons and the search field is aGlassSearchBar. The ⋯ menu and other sheets areGlassModalSheets, and dialogs and toasts areGlassDialogandGlassToast. Settings usesGlassGroupedSection,GlassListTile,GlassSwitch,GlassSliderandGlassSegmentedControl. The bar along the bottom isGlassTabBar.bottom, and the index strip, popups and folders areGlassContainers, set up inlib/ui/glass.dart. Glass comes and goes withGlassMaterializeTransition. - The bar along the bottom gets help from the app. The package's bar knows taps and drags. Dropping an icon on a category, holding one over it to open it, and long pressing one are handled by the app, in a slot over each category (
CategorySlot) that lets every other touch through. The app also draws the names (TabFace), since the bar doesn't shorten long ones. The bar only reports where a drag ends, so the app follows the finger itself to open categories along the way (_CategoryBarState). - The bar at a side is the app's own. Turned on its side, the package's tab bar comes out bent: its glass doesn't turn with it. Its upright widgets don't fit either: the segmented control takes six segments at most, and the vertical tab bar has no names and a lens that bends nothing. So
lib/ui/side_bar.dartputs the package'sAnimatedGlassIndicator(the pill and lens of its own bars) on a strip of glass, with its lens optics (IndicatorLensOptics), its jelly springs (IndicatorJellyBuilder) and itsGlassGlow. It moves to the bottom bar's measures: 4% bigger under a finger, a lens 11 dp longer and 8 dp wider than the pill, and the icon under it 16% bigger. Since the app places the lens itself, it can pull the lens out of the bar as the index strip.IndicatorJellyBuilderisn't exported, so it's imported frompackage:liquid_glass_widgets/utils/indicator_jelly.dart. That's the one place the app reaches past the package's front door; if an update moves the file, the build fails there. - The bars float over the pages. The pages are as big as the screen, and each keeps the bar's room free inside its own scrolling (
_BarBelow, and the lane inatSideand_pager, inlib/ui/drawer_page.dart). That's how icons can scroll under the bar. The bar has aGlassBackdropGroupof its own, which the index strip beside the icons shares. A group reads the screen when its first glass paints, so in the page's group the bar would read the screen before the icons were drawn, and wouldn't blur them. - Icons move on the package's springs. liquid_glass_widgets has no grid or drag and drop to borrow (its
GlassReorderableListis a list of rows), so the motion is the app's own, on the package's SwiftUI spring presets (GlassSpring, inlib/ui/moving.dart). A grid's tiles are one run, each under its item's key (ItemGridinlib/ui/tiles.dart). When the order changes, each tile is drawn from its old cell and slides to its new one, and the grid's height follows. Cells are all one size, so nothing is measured. A dropped icon flies on the navigator's overlay (IconFlight) to where its tile says it is, or shrinks into the folder or category that took it. - Move icons down comes from Smart Launcher. Its
DrawerPanelgives the grid a fifth of the screen's height, less the system bars, as room above it to scroll into, on an upright screen taller than 500 dp. Drawer does the same in_Lowered. One difference: Smart Launcher puts a short category at the bottom whether the setting is on or off, and Drawer only with it on.
Opening, and Android's snapshot
When an app goes to the background, Android keeps a snapshot of its screen and shows it first when the app comes back, until the app draws a frame of its own. A snapshot of the open drawer would show it open, then gone, then opening again. So:
- Before it leaves by itself, the drawer takes itself off screen and waits for that frame (
_leave), so the snapshot is without it. When you open an app from it, the picture of the wallpaper stays (WallpaperBackdropinlib/main.dart), so the app opens over what looks like the wallpaper. - When it's back, it opens once Flutter's first frame on the new surface is on screen (
onFlutterUiDisplayedinMainActivity.kt,Native.onShown), not when the activity resumes, while the snapshot still covers it. - Under a picture of the wallpaper, the window has no tone of its own (
Appearance.windowColor). The snapshot would carry that tone too, and darken the screen twice while it's over the drawer. - Left any other way (Home, Recents, a notification), the snapshot has the drawer in it, so the drawer is shown as it was, without the opening animation. Android takes the snapshot before the app is told it's leaving.
- Glass is moved into place, never faded on its own (
_arriving). Glass fading by itself loses sight of what's behind it, so the opening fades the whole page, picture and all, over the same picture beneath.
Keeping the glass fast
The package's glass reads the screen back to blur and bend what's behind it. On a phone's GPU, each read ends the render pass and copies the screen, so what matters is how many reads there are.
-
Flutter draws in a transparent SurfaceView (
getRenderMode()inMainActivity.kt). With a transparent background, Flutter would otherwise use a TextureView, which Android draws into the window again on every frame. -
The App page's glass reads the screen in groups (
GlassBackdropGroup.hoisted). In a group, the package draws the blur of every surface together and lets their bending share one copy of the screen. There are three kinds of group, each begun where its blur belongs:- the page's, right over the wallpaper picture, for the title bars' buttons and the search field (
lib/ui/drawer_page.dart); - the floating bar's, after the pages, so it blurs the icons under it. With the bar along the bottom, the index strip is in this group too (
overBottom); - each grid's, for its folders, inside the grid's scrolling, so a folder scrolled out of sight doesn't leave its blur behind (
ItemGridinlib/ui/tiles.dart).
Before, the bar and the strip each had a group to themselves, and every surface copied the screen for its bending. On the emulator, a page swipe with the bar along the bottom went from 30.6 render passes a frame to 19.9, and scrolling 20 glass folders from 69 to 44. On a Galaxy S24 Ultra (120 Hz), that page swipe went from 55 to 88 frames a second to about 105.
- the page's, right over the wallpaper picture, for the title bars' buttons and the search field (
-
The App page is drawn as one picture of itself while something comes over it (
CoverObserverinlib/ui/covering.dart,_frozenindrawer_page.dart). That covers the ⋯ menu's sheet, the quick menu, a popup, a dialog, a folder or a Settings page on its way in or out. A frame of the sheet over the live page took 25 render passes with Best; over the page's picture it takes 11. -
Without a picture of the wallpaper, the glass is a tint and a rim, and reads nothing back (
OverWallpaper,GlassLook.settings). The real wallpaper is drawn by Android behind Flutter's surface, where nothing in Flutter can blur it. Best then falls back to the package's lighter glass, since its full glass would have nothing to sample. -
Glass is never faded with a layer (
Opacity,FadeTransition,AnimatedOpacity). In a fading layer, glass sees only what's in the layer, so it goes flat and pops back when the fade ends. It's faded withgrowGlass(the package'sGlassMaterializeTransition), which fades the glass itself. -
Each folder icon is a glass surface of its own. Grouped as above, a folder still costs about one render pass of its own, for its bending, where it cost two or three. Before the grouping, on a Galaxy S10 (1440 × 3040, 60 Hz), scrolling 40 folders over a picture of the wallpaper drew 31 frames with Best, against 92 with Glass folders off; the phones haven't been measured cleanly since. A drawing of the glass by the app was as fast as the plain squares but wasn't the real glass, so it was undone (commit
9752ddd). Making many small surfaces cheaper still is the package's job. -
The limit is the GPU, not the CPU. On the S10, Flutter draws with OpenGL ES, because it doesn't trust that chip's Vulkan driver. A test build forced to Vulkan halved the CPU's share of each frame, but frames with 40 glass folders took just as long (about 48 ms), waiting on the GPU. So what helps is fewer copies of the screen, which is what the groups are for.
This software is provided "as is", without warranty of any kind. Use it at your own risk; the author is not responsible for any damage or data loss resulting from its use.
Drawer started as a personal project. It is not affiliated with or endorsed by the makers of Smart Launcher, Apple or Google.
Claude Code was used in the development of this software.
Drawer is built on Flutter and liquid_glass_widgets, among others. Their versions and licenses are in THIRD_PARTY_NOTICES.md.







