TF-691 Change mouse cursor search bar as edit text in web
This commit is contained in:
@@ -60,28 +60,29 @@ 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: Row(
|
child: InkWell(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
onTap: () => _onOpenSearchViewAction?.call(),
|
||||||
children: [
|
mouseCursor: SystemMouseCursors.text,
|
||||||
SizedBox(width: 8),
|
child: Row(
|
||||||
buildIconWeb(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
splashRadius: 15,
|
children: [
|
||||||
minSize: 40,
|
SizedBox(width: 8),
|
||||||
iconPadding: EdgeInsets.zero,
|
buildIconWeb(
|
||||||
icon: SvgPicture.asset(_imagePaths.icSearchBar, width: 16, height: 16, fit: BoxFit.fill),
|
splashRadius: 15,
|
||||||
onTap: () => _onOpenSearchViewAction?.call()),
|
minSize: 40,
|
||||||
Expanded(
|
iconPadding: EdgeInsets.zero,
|
||||||
child: InkWell(
|
icon: SvgPicture.asset(_imagePaths.icSearchBar, width: 16, height: 16, fit: BoxFit.fill),
|
||||||
onTap: () => _onOpenSearchViewAction?.call(),
|
onTap: () => _onOpenSearchViewAction?.call()),
|
||||||
|
Expanded(
|
||||||
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