This commit is contained in:
xuhang-x 2024-07-15 18:28:41 +08:00
parent 4b4651ea49
commit a29ea334f5

View File

@ -80,17 +80,13 @@ class SearchView extends GetView<CSearchController> {
child: Container( child: Container(
height: 40.w, height: 40.w,
alignment: Alignment.center, alignment: Alignment.center,
padding: const EdgeInsets.symmetric(horizontal: 10).w,
margin: const EdgeInsets.all(16).w, margin: const EdgeInsets.all(16).w,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50).r, borderRadius: BorderRadius.circular(50).r,
color: const Color(0xff141414)), color: const Color(0xff141414),
),
child: Row( child: Row(
children: [ children: [
Image.asset(
width: 24.w,
Assets.searchIcon,
),
10.horizontalSpace, 10.horizontalSpace,
Expanded( Expanded(
child: TextField( child: TextField(
@ -103,13 +99,21 @@ class SearchView extends GetView<CSearchController> {
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 14.sp, fontSize: 14.sp,
height: 1.4,
), ),
decoration: InputDecoration( decoration: InputDecoration(
border: InputBorder.none, icon: Image.asset(
hintText: "Title", width: 24.w,
Assets.searchIcon,
),
hintText: 'Title',
hintStyle: TextStyle( hintStyle: TextStyle(
color: const Color(0xff47474A), height: 1.4,
fontSize: 14.sp, fontSize: 14.sp,
color: const Color(0xff47474A)),
contentPadding: const EdgeInsets.symmetric(
vertical: -10,
horizontal: -10,
), ),
), ),
), ),
@ -194,6 +198,10 @@ class SearchView extends GetView<CSearchController> {
fontSize: 32.sp, fontSize: 32.sp,
color: const Color.fromRGBO(255, 255, 255, 0.85), color: const Color.fromRGBO(255, 255, 255, 0.85),
), ),
border: const OutlineInputBorder(
borderSide: BorderSide.none,
),
counterText: "",
), ),
), ),
), ),