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