buildConnectButton method
- {required BuildContext context,
- required WidgetRef ref,
- required AppModel appModel}
Menu bar action.
Implementation
Widget buildConnectButton(
{required BuildContext context,
required WidgetRef ref,
required AppModel appModel}) {
return FloatingSearchBarAction(
child: JidoujishoIconButton(
size: Theme.of(context).textTheme.titleLarge?.fontSize,
tooltip: t.connect_disconnect,
enabledColor: isActive ? Colors.red : null,
icon: Icons.leak_add,
onTap: () {
showConnectDialog(
context: context,
ref: ref,
appModel: appModel,
);
},
),
);
}