Skip to content

Idea for improvement #19

@hassan689

Description

@hassan689

Idea :

final hasAiKey = AppConfig.openAiApiKey.isNotEmpty;
...
ElevatedButton(
  onPressed: hasAiKey ? _sendToDino : null, // disabled if no key
  child: Text(hasAiKey ? 'Ask Dino' : 'AI not configured'),
)

In the Dino UI widget, you can also disable the AI button if the key is missing , this is optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions