Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include prompt style in LogTheme #1252

Open
1 task
alestiago opened this issue Feb 13, 2024 · 0 comments
Open
1 task

feat: include prompt style in LogTheme #1252

alestiago opened this issue Feb 13, 2024 · 0 comments

Comments

@alestiago
Copy link
Collaborator

alestiago commented Feb 13, 2024

Description

Currently, a Logger can't style the prompt with the LogTheme.

Example

void main() {
  String? style(String? text) => '>> $text';
  final Logger logger = Logger(
    theme: LogTheme(
      detail: style,
      info: style,
      err: style,
      warn: style,
      alert: style,
      success: style,
    ),
  );

  logger.prompt('hello', defaultValue: 'world');
  /// "hello (world)"
}

Requirements

  • Add prompt as an option to LogTheme
@alestiago alestiago changed the title feat: include prompt to LogTheme feat: include prompt style to LogTheme Feb 13, 2024
@alestiago alestiago changed the title feat: include prompt style to LogTheme feat: include prompt style in LogTheme Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant