buildApiKeyButton method
- {required BuildContext context,
- required WidgetRef ref,
- required AppModel appModel}
Menu bar action.
Implementation
Widget buildApiKeyButton(
{required BuildContext context,
required WidgetRef ref,
required AppModel appModel}) {
return FloatingSearchBarAction(
child: JidoujishoIconButton(
size: Theme.of(context).textTheme.titleLarge?.fontSize,
tooltip: t.api_key,
icon: Icons.key,
onTap: () async {
await showDialog(
context: context,
builder: (context) => const ChatgptSettingsDialogPage(),
);
mediaType.refreshTab();
},
),
);
}