snaplog_flutter library
Deprecated: import package:flawsnap/flawsnap.dart.
Kept so apps moving from the snaplog_flutter package can switch every
package:snaplog_flutter/ import to package:flawsnap/ in one
step. It exports exactly the same as flawsnap.dart.
Classes
- Flawsnap
- Entry point of the SDK. Call init once, then wrap your app with wrap.
- FlawsnapHttpClient
-
An
httpclient that records method, URL, status and timing of each request for bug reports. Request and response bodies are never recorded. - FlawsnapLogEntry
- A console-style line attached to reports (mirrors LogEntry in the API).
-
Tracks the current route so reports say which screen the user was on, and
tells Insights about screen changes (for the user-flow view).
Add it to your app:
MaterialApp(navigatorObservers: [Flawsnap.navigatorObserver]). - FlawsnapNetworkEntry
- One HTTP request seen by FlawsnapHttpClient (mirrors NetworkEntry in the API).
- ReporterSession
- A signed-in team member's reporter token, as the API returns it.
- ReporterTokenStore
- Where a signed-in member's reporter token is kept between launches.
-
Keeps the token in shared_preferences (v1). The token only lets this app
send reports to one project, but apps that want it encrypted at rest can
pass a store backed by flutter_secure_storage to
Flawsnap.init.
Enums
- FlawsnapTrigger
- Ways a user can open the bug reporter.