NetLensTheme class

All definitions for theming NetLens.

Constructors

NetLensTheme()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

themeMode → ValueNotifier<ThemeMode>
Theme mode selected by user. System follows the host app.
final

Static Methods

getIssueColor(BuildContext context, NetLensIssueOrigin origin) → Color
Returns color which marks the side responsible for a failed call.
getLogKindColor(BuildContext context, NetLensLogInfo info) → Color
Returns color of a log entry detected as info.
getLogTextColor(BuildContext context, DiagnosticLevel level) → Color
Return log text color based on diagnostic level.
getStatusColor(BuildContext context, int? status) → Color
Returns color which represents HTTP status. Brighter colors are used in dark mode and darker ones in light mode to keep text readable.
getTheme({Brightness? brightness}) → ThemeData
Returns general theme data. Themes are created once so rebuilding a page doesn't swap the theme instance. When brightness is null, the platform brightness is used.
resolveBrightness(BuildContext hostContext) → Brightness
Returns brightness which NetLens should use. Unless user selected light or dark mode it follows the theme of the host app found at hostContext.

Constants

darkGreen → const Color
darkOrange → const Color
darkRed → const Color
green → const Color
grey → const Color
lightRed → const Color
orange → const Color
red → const Color
white → const Color