123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import 'package:flutter/material.dart';
- import 'package:common_project/common_project.dart';
- import 'package:module_home/view_model/search_index/search_index_cubit.dart';
- ///des: 搜索导航页面
- class SearchIndexPage extends StatefulWidget {
- @override
- _SearchIndexPage createState() => _SearchIndexPage();
- }
- class _SearchIndexPage extends State<SearchIndexPage> {
- @override
- Widget build(BuildContext context) {
- return BlocProvider(
- create: (context) => SearchIndexCubit(),
- child: Scaffold(
- body: Column(
- children: [
- //顶部
- Builder(
- builder: (context){
- SearchIndexCubit bloc = BlocProvider.of<SearchIndexCubit>(context);
- return Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Expanded(child: SearchWidget(
- '请输入搜索内容',
- bloc.state.searchController,autoFocusBool:false,
- onSubmittedF: () {
- XLog.d('输出===========');
- },
- ),),
- InkWell(
- onTap: (){
- Navigator.pop(context);
- },
- child: Text('取消'),
- )
- ],
- );
- }),
- ///切换部分
- Builder(builder: (context){
- return Container();
- }),
- ],
- ),
- ),);
- }
- //搜索历史
- Widget searchHistory(){
- return Container();
- }
- //猜你喜欢
- Widget guessLike(){
- return Container();
- }
- }
|