buildPickFileButton method
- {required BuildContext context,
- required WidgetRef ref,
- required AppModel appModel}
Menu bar action.
Implementation
Widget buildPickFileButton(
{required BuildContext context,
required WidgetRef ref,
required AppModel appModel}) {
return FloatingSearchBarAction(
child: JidoujishoIconButton(
size: Theme.of(context).textTheme.titleLarge?.fontSize,
tooltip: t.pick_file,
icon: Icons.upload_file,
onTap: () async {
launchFilePicker(
context: context,
ref: ref,
appModel: appModel,
);
},
),
);
}