Open booooohdan opened 1 month ago
Documentation is unclear. This code is changing colors in the debug console:
talker = TalkerFlutter.init(
settings: TalkerSettings(
colors: {
TalkerLogType.critical: AnsiPen()..xterm(160),
TalkerLogType.exception: AnsiPen()..xterm(160),
TalkerLogType.error: AnsiPen()..xterm(160),
TalkerLogType.warning: AnsiPen()..xterm(208),
TalkerLogType.info: AnsiPen()..xterm(39),
TalkerLogType.debug: AnsiPen()..xterm(40),
TalkerLogType.verbose: AnsiPen()..xterm(8),
},
),
);
and this code in Talker Screen.
builder: (context, state) => TalkerScreen(
appBarTitle: 'FamilyHub Logs',
talker: FamilyHubLogger.instance.talker,
theme: const TalkerScreenTheme(
logColors: {
TalkerLogType.critical: Colors.red,
TalkerLogType.exception: Colors.red,
TalkerLogType.error: Colors.red,
TalkerLogType.warning: Colors.orange,
TalkerLogType.info: Colors.blue,
TalkerLogType.debug: Colors.green,
TalkerLogType.verbose: Colors.grey,
},
),
),
anyway I cannot change colors for my custom Log Types, because it work only for the debug console, I can only override LogLevel
Colors are not applying, and TalkerScreen shows default colors. Btw custom titles working fine