rename address field
This commit is contained in:
@@ -45,6 +45,7 @@ class SiteSearch extends HookConsumerWidget {
|
|||||||
final List<BangData> availableBangs;
|
final List<BangData> availableBangs;
|
||||||
final String? initialText;
|
final String? initialText;
|
||||||
final bool searchInNewTab;
|
final bool searchInNewTab;
|
||||||
|
final Widget? label;
|
||||||
|
|
||||||
const SiteSearch({
|
const SiteSearch({
|
||||||
required this.domain,
|
required this.domain,
|
||||||
@@ -52,6 +53,7 @@ class SiteSearch extends HookConsumerWidget {
|
|||||||
super.key,
|
super.key,
|
||||||
this.initialText,
|
this.initialText,
|
||||||
this.searchInNewTab = false,
|
this.searchInNewTab = false,
|
||||||
|
this.label,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -165,6 +167,7 @@ class SiteSearch extends HookConsumerWidget {
|
|||||||
maxLines: null,
|
maxLines: null,
|
||||||
activeBang: selectedBang,
|
activeBang: selectedBang,
|
||||||
showSuggestions: true,
|
showSuggestions: true,
|
||||||
|
label: label,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (!searchFocusNode.hasFocus) {
|
if (!searchFocusNode.hasFocus) {
|
||||||
// Select all text when the field is tapped
|
// Select all text when the field is tapped
|
||||||
|
|||||||
@@ -185,6 +185,7 @@ class ViewTabSheetWidget extends HookConsumerWidget {
|
|||||||
domain: initialTabState.url.host,
|
domain: initialTabState.url.host,
|
||||||
availableBangs: availableBangs,
|
availableBangs: availableBangs,
|
||||||
initialText: initialTabState.url.toString(),
|
initialText: initialTabState.url.toString(),
|
||||||
|
label: const Text('Address'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
|
|||||||
Reference in New Issue
Block a user