vigil_ui 0.1.0
vigil_ui: ^0.1.0 copied to clipboard
A Flutter network inspector overlay with request search, filters, cURL export, timing metrics, and shake-to-open support.
A Flutter inspector for calls captured by vigil_core. It provides request
search and filters, request/response details, cURL export, client and server
timing, gated debug details, and shake-to-open behavior.
Installation #
flutter pub add vigil_ui vigil_core
Usage #
Wrap the output of MaterialApp.builder so the inspector can cover every route:
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:vigil_ui/vigil_ui.dart';
MaterialApp(
builder: (context, child) => VigilOverlay(
enabled: kDebugMode,
showFloatingButton: false,
child: child ?? const SizedBox.shrink(),
),
home: const HomePage(),
);
Shake is enabled by default. To use your own debug menu, present
VigilInspector directly. To offer a visible launcher during development, set
showFloatingButton: true.
const VigilInspector();
The overlay respects system insets for content while painting its background edge-to-edge. Disable the overlay in production unless its captured data and access model have been explicitly reviewed.