peekaboo 0.0.1
peekaboo: ^0.0.1 copied to clipboard
A developer utility toolkit for Flutter apps.
π Peekaboo #
Peekaboo is a developer utility toolkit for Flutter apps β designed to reveal useful tools while staying invisible in production.
Easily inject debugging panels, secret gesture triggers, overlay loaders, platform overrides, and more into any Flutter app.
π Features #
- π Global Overlay Loader (
AppOverlayLoader
) - π Developer Logger (
PeekabooLogger
) - π± Device Info + Emulator Detection
- π οΈ Secret Dev Panel with:
- Boot logs
- Platform overrides
- Feature toggles
- Manual simulation tools
- π― Platform override & feature flag registry
- π΅οΈ Hidden gesture triggers (invisible corners)
- π¨ Modular architecture β easy to plug & extend
π§ Installation #
Add to your pubspec.yaml
:
dependencies:
peekaboo:
git:
url: https://github.com/YOUR_USERNAME/peekaboo.git
Or publish on
pub.flutter-io.cn
and use:peekaboo: ^0.0.1
π οΈ Usage #
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await BootupService().initialize();
runApp(MyApp());
}
AppOverlayLoader.show(context);
PeekabooLogger().d("This is a debug log");
Want a full dev panel?
DevGesture(
onTriggered: () => Navigator.push(
context,
MaterialPageRoute(builder: (_) => const DevPanel()),
),
child: YourAppUI(),
);
π§± Modules Overview #
Module | Description |
---|---|
AppOverlayLoader |
Global loading overlay |
PeekabooLogger |
Log with PrettyPrinter |
DeviceHelper |
Device info and emulator detection |
BootupService |
Collect and show boot logs |
DevPanel |
Modular dev dashboard |
DevGesture |
Secret corner tap to trigger dev tools |
OverrideRegistry |
Feature flags and config injection |
PlatformHelper |
Platform override utility |
β No Production Overhead #
All debug tools are:
- Disabled in
kReleaseMode
- Triggered only by developers via gestures or flags
π Folder Structure #
lib/
βββ overlay_loading/
βββ logger/
βββ device_info/
βββ bootup/
βββ dev_panel/
βββ trigger/
βββ override/
βββ peekaboo.dart
π§ͺ Try It Out #
For internal development, use the simulator/
app (not published). It allows:
- Visual testing of all modules
- Interactive debug panel
- Hot reload + update tests