TF-691 Change mouse cursor search bar as edit text in web
This commit is contained in:
@@ -60,6 +60,9 @@ class SearchBarView {
|
|||||||
color: AppColor.colorBgSearchBar),
|
color: AppColor.colorBgSearchBar),
|
||||||
padding: _padding ?? EdgeInsets.zero,
|
padding: _padding ?? EdgeInsets.zero,
|
||||||
margin: _margin ?? EdgeInsets.zero,
|
margin: _margin ?? EdgeInsets.zero,
|
||||||
|
child: InkWell(
|
||||||
|
onTap: () => _onOpenSearchViewAction?.call(),
|
||||||
|
mouseCursor: SystemMouseCursors.text,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
@@ -71,18 +74,16 @@ class SearchBarView {
|
|||||||
icon: SvgPicture.asset(_imagePaths.icSearchBar, width: 16, height: 16, fit: BoxFit.fill),
|
icon: SvgPicture.asset(_imagePaths.icSearchBar, width: 16, height: 16, fit: BoxFit.fill),
|
||||||
onTap: () => _onOpenSearchViewAction?.call()),
|
onTap: () => _onOpenSearchViewAction?.call()),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: InkWell(
|
|
||||||
onTap: () => _onOpenSearchViewAction?.call(),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
_hintTextSearch ?? '',
|
_hintTextSearch ?? '',
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
style: TextStyle(fontSize: kIsWeb ? 15 : 17, color: AppColor.colorHintSearchBar)),
|
style: TextStyle(fontSize: kIsWeb ? 15 : 17, color: AppColor.colorHintSearchBar)),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
if(_rightButton != null)
|
if(_rightButton != null)
|
||||||
_rightButton!
|
_rightButton!
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user