From 6a9611735544d52ee5376d28cd042a79ce2a1f7d Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 4 Aug 2022 11:51:00 +0700 Subject: [PATCH] TF-691 Change mouse cursor search bar as edit text in web --- .../views/search/search_bar_view.dart | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/core/lib/presentation/views/search/search_bar_view.dart b/core/lib/presentation/views/search/search_bar_view.dart index 004205e15..2dd9344c8 100644 --- a/core/lib/presentation/views/search/search_bar_view.dart +++ b/core/lib/presentation/views/search/search_bar_view.dart @@ -60,28 +60,29 @@ class SearchBarView { color: AppColor.colorBgSearchBar), padding: _padding ?? EdgeInsets.zero, margin: _margin ?? EdgeInsets.zero, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - SizedBox(width: 8), - buildIconWeb( - splashRadius: 15, - minSize: 40, - iconPadding: EdgeInsets.zero, - icon: SvgPicture.asset(_imagePaths.icSearchBar, width: 16, height: 16, fit: BoxFit.fill), - onTap: () => _onOpenSearchViewAction?.call()), - Expanded( - child: InkWell( - onTap: () => _onOpenSearchViewAction?.call(), + child: InkWell( + onTap: () => _onOpenSearchViewAction?.call(), + mouseCursor: SystemMouseCursors.text, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SizedBox(width: 8), + buildIconWeb( + splashRadius: 15, + minSize: 40, + iconPadding: EdgeInsets.zero, + icon: SvgPicture.asset(_imagePaths.icSearchBar, width: 16, height: 16, fit: BoxFit.fill), + onTap: () => _onOpenSearchViewAction?.call()), + Expanded( child: Text( _hintTextSearch ?? '', maxLines: 1, style: TextStyle(fontSize: kIsWeb ? 15 : 17, color: AppColor.colorHintSearchBar)), ), - ), - if(_rightButton != null) - _rightButton! - ] + if(_rightButton != null) + _rightButton! + ] + ), ), ); }