reworked find in page
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:lensai/core/routing/routes.dart';
|
||||
import 'package:lensai/features/bangs/domain/providers/bangs.dart';
|
||||
import 'package:lensai/features/geckoview/domain/providers/tab_state.dart';
|
||||
import 'package:lensai/features/geckoview/domain/repositories/tab.dart';
|
||||
import 'package:lensai/features/geckoview/features/find_in_page/presentation/controllers/find_in_page.dart';
|
||||
import 'package:riverpod/riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
@@ -50,6 +51,9 @@ GeckoSelectionActionService selectionActionService(Ref ref) {
|
||||
logger.e('No default search bang found');
|
||||
}
|
||||
}),
|
||||
FindInPageAction((text) {
|
||||
ref.read(findInPageControllerProvider.notifier).findAll(text: text);
|
||||
}),
|
||||
ShareAction((text) async {
|
||||
await SharePlus.instance.share(ShareParams(text: text));
|
||||
}),
|
||||
|
||||
@@ -7,7 +7,7 @@ part of 'providers.dart';
|
||||
// **************************************************************************
|
||||
|
||||
String _$selectionActionServiceHash() =>
|
||||
r'fc7344fa34f0e27772309303083804866336197b';
|
||||
r'9393acfbc2cc0864d9e9b116e65e4c2713da2ab1';
|
||||
|
||||
/// See also [selectionActionService].
|
||||
@ProviderFor(selectionActionService)
|
||||
|
||||
Reference in New Issue
Block a user