Flutter项目之table页面实现
目录:
- 1、首页页面
- index.dart(首页table页面)
1、首页页面
效果图:
index.dart(首页table页面)
import 'package:flutter/material.dart';
import 'package:flutter_haoke/pages/home/info/index.dart';
import 'package:flutter_haoke/pages/home/tab_index/index_navigation.dart';
import 'package:flutter_haoke/pages/home/tab_index/index_recommond.dart';
import 'package:flutter_haoke/widget/common_swiper.dart';
import 'package:flutter_haoke/widget/search_bar/index.dart';
class TabIndex extends StatelessWidget {
const TabIndex({Key? key}) : super(key: key);
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: SearchBar(
showLocation: true,
showMap: true,
onSearch: () {
Navigator.of(context).pushNamed("search");
},
),
backgroundColor: Colors.white,
),
body: ListView(
children: [
CommonSwiper(),
IndexNavigation(),
IndexRecommond(),
Info(
showTitle: true,
),
],
),
);
}
}