import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:novyronst/root/lib_export.dart'; class HomeSearchView extends StatefulWidget { const HomeSearchView({super.key}); @override State createState() { return _SearchViewState(); } } class _SearchViewState extends State { final _searchController = TextEditingController(); @override Widget build(BuildContext context) { return Container( height: AppScreen.navBarHeight, padding: EdgeInsets.only(top: AppScreen.statusBarHeight, left: 16, right: 16, bottom: 5 ), child: SizedBox( height: 36, child: Row( children: [ HelpImage.asset(ConstImage.homeTopLogo, width: 36), const SizedBox(width: 16), Expanded( child: Stack( children: [ HelpImage.asset(ConstImage.searchBg, height: 36, fit: BoxFit.fill), Padding( padding: EdgeInsets.only(left: 11), child: Row( children: [ Icon(Icons.search, color: Colors.white, size: 24), Expanded(child: CupertinoTextField( controller: _searchController, // focusNode: widget.focusNode, decoration: BoxDecoration(), placeholder: 'What are...... ', placeholderStyle: TextStyle( fontSize: 13, color: Colors.white.withAlpha(127), ), style: TextStyle( fontSize: 14, color: Colors.white, ), textInputAction: TextInputAction.search, onEditingComplete: () { }, ),), HelpImage.asset(ConstImage.homeSearch, width: 78, height: 36, fit: BoxFit.fill) ], ), ) ], ), ) ], ), ), ); } }