49 lines
1.8 KiB
Dart
49 lines
1.8 KiB
Dart
// import 'package:flutter/material.dart';
|
|
// import 'package:get/get.dart';
|
|
// import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
// import '../../../app.dart';
|
|
|
|
// class SearchWidget extends StatelessWidget {
|
|
// const SearchWidget({Key? key}) : super(key: key);
|
|
|
|
// @override
|
|
// Widget build(BuildContext context) {
|
|
// return GetBuilder<SearchController>(
|
|
// init: SearchController(),
|
|
// builder: (sc) => Padding(
|
|
// padding: const EdgeInsets.only(left: 8.0, right: 8),
|
|
// child: TextFormField(
|
|
// controller: sc.searchTxtCtrl,
|
|
// // onFieldSubmitted: (value) => sc.saveSearchHistory(value),
|
|
// // focusNode: sc.searchFocusNode,
|
|
// // autofocus: true,
|
|
// // onTap: sc.onDecoratedTxtFormFieldTap,
|
|
// onChanged: (value) => sc.onSearchChanged(value),
|
|
// cursorColor: Color(0xFF000000).withOpacity(0.40),
|
|
// // style: new TextStyle(fontSize: 16.sp),
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
// decoration: InputDecoration(
|
|
// hintText: 'Search',
|
|
// hintStyle: new TextStyle(fontSize: 16.sp),
|
|
// fillColor: ThemeColor.cursorColor,
|
|
// focusColor: ThemeColor.cursorColor,
|
|
// hoverColor: ThemeColor.white,
|
|
// border: InputBorder.none,
|
|
// enabledBorder: InputBorder.none,
|
|
// focusedBorder: InputBorder.none,
|
|
// disabledBorder: InputBorder.none,
|
|
// suffixIcon: sc.state.hasSuffixIcon.value
|
|
// ? ClearTextButton(callback: sc.clearSearchText)
|
|
// : Icon(
|
|
// Icons.search,
|
|
// size: 16.sp,
|
|
// color: Colors.white,
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// );
|
|
// }
|
|
// }
|